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.
Answers (2)
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
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
For completeness, you have a condition on the field for Initialization with a true value.
Screenshot: