Opening a form

thanks for the response, mac, but i’m still not sure how to code it.on the Server Side Includes, we have a line that goes:

 <a href="/MyDB.nsf/frmABC?OpenForm&address=Miami&state=FLA"title=“ABC”>Form ABC

(i.e. ‘Miami’ is hard-coded for the address)

when frmABC is opened, i can get it to display ‘Miami’ in a field by defining the value of the field to be @UrlQueryString(“address”)

but instead of hard-coding the address ‘Miami’ i want to pass whatever text may be in the field on the currently open form

if the field on the currently open form is called ‘addr’,

i try  <a href=“/MyDB.nsf/frmABC?OpenForm&address=”+addr+"state=FLA"title=“ABC”>Form ABC, but when i try this the field on frmABC shows nothing.

any hints??

Subject: opening a form

It’s not clear what is the context where you are using the expression <a href=“/MyDB.nsf/frmABC?OpenForm&address=”+addr+"state=FLA"title=“ABC”>…

However, since it’s apparently passthru HTML, it seems that you are probably calculating this value when the form is opened, as part of the generation of the HTML for the web page. This would not be recalculated when you click the link, so if you have since entered a value in the addr field, it would still use the value of addr that was current as of the time the form opened.

You will need to use JavaScript to read the current value of the field.

Read the value of the addr field (document.forms[0].addr.value), use escape function to URL-encode it, and construct the URL out of that. Use location.href = new url or window.open method to go to the new page.