Jump to content

Recommended Posts

Instead of dropdown you can have a text filed in your submission page.

Create a report page to search for options. In Configure Result Page Fields screen add a HTML Block with the code below which is generating a button to select one of the options.

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

Add Header/Footer and paste the code below to Footer:

<script>

function f_select(ln){
window.close();
var element_value= ln;

//Replace the FieldName with the Original DataPage FieldName

window.opener.document.getElementById("InsertRecordFieldName").value=element_value; 

}
</script>

 This will add the value to a text field you have on your submission page.

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
Reply to this topic...

×   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...
×
×
  • Create New...