This topic is locked

Passing data between Forms on page.

11/16/2004 6:30:28 PM
ASPRunnerPro General questions
lhastings author

Hi, I'm stuck <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=925&image=1&table=forumtopics' class='bbc_emoticon' alt=':blink:' /> trying to get an address lookup service integrated into my 'Add new record' page. I can get the address data back from the service, into the page, but cannot figure out how to get it to appear in the ASPRunner address fields.
Major thanks to Sergey for the solution.
If anyone wants to see the final pages send me an email.
Thanks

Sergey Kornilov admin 11/17/2004

Hi,
you need to modify Address Lookup popup window

function setForm() {

    opener.document.outputForm1.outputField1.value = document.inputForm1.inputField1.value;

    opener.document.outputForm1.outputField2.value = document.inputForm1.inputField2.value;

...


needs to be changed to something like this:

function setForm() {

    opener.document.editform.address1.value = document.inputForm1.inputField1.value;

    opener.document.editform.address2.value = document.inputForm1.inputField2.value;

...


Make sure you put correct field names there.