How to pass query parameters to iPaaS form?

With the release of 2.3, we should now be able to pass query parameters to a form. The data model suggests that it should be Query-Name (release notes say Query_ but the data model suggests otherwise), but how do we actually construct the URL for the form to include that data and then should that data be available when the form initializes?

We've tried passing &Query-Name=XXX at the end of the URL, tried putting it right after "start?" towards the front of the URL, etc. but the data in that we enter isn't loading into any of the labels set to load on initialization.

I have to be doing something silly, can you let me know where I'm going wrong.

Asked by Jason Pelletier on Fri 12/16/22 9:59 AM
Sign In to leave feedback or contribute an answer

Answers (2)

This answer has been marked as the accepted answer
David Tod Tue 12/20/22 9:40 AM
var ticketID = document.getElementById('btnCopyID').dataset.clipboardText;
document.write('<iframe height="350px" src="https://us.ipaas.teamdynamix.com/app/form/start?c=blahBlahBlah&ticketID=' + ticketID + '" width="100%"></iframe>');

just normally with whatever you want. Above is a custom javascript that I'm playing around with embedding on a TDX form.

Notice

&ticketID=1234567

and on the receiving end, it's identified similiarly.

Then, in the Data Model it is Query-ticketID

No feedback
And as I stated, I was sure I was doing someone silly, and I was! I was being very literal and using the query parameter as Query-ticketID rather than just using the name of the property and then looking for Query-ticketID on the form! Thanks for showing me what I was doing wrong!

I still can't load the query parameter into a text box on form initialization, at least not for me, but that's a different issue to work through
- Jason Pelletier Wed 12/21/22 8:59 AM
And I figured the last part out too...moving too fast and the brain is moving faster than my fingers! Thanks again! - Jason Pelletier Wed 12/21/22 9:25 AM

David Tod Wed 12/21/22 10:51 AM

For completeness, you have a condition on the field for Initialization with a true value.

Screenshot:

No feedback