Jump to content
  • 0

Select An Item From A List


Master
 Share

Question

1 answer to this question

Recommended Posts

  • 0
  1. Enable advanced option and parameters on both submission and report pages
  2. Add a HTML Block to your submission page to open the report page using the code below:

 

<input type="Button" value="Add" onclick="window.open('URL OF REPORT PAGE','popup','width=500,height=700,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false" />

 

 

3. Then in the report page add HTML Block so user can select the item:

<input onclick="additem('[@field:FIELDNAME]');"  type="button"  value="Select" />

 

Replace [@field:FIELDNAME] with the field value you want to pass over to the submission page.

 

4. Add Header/Footer to the report page and use the script below:

 

<script>

function additem(fn){

window.close();

window.opener.document.getElementById("InsertRecordFIELDNAME").value=fn;

}

</script>

 

Replace InsertRecordFIELDNAME with the actual ID of the field which is receiving the value.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...