I'd like to be able to hit a button on the form and open a new window. In the new window would be a web component (a separate in-house component, not part of PerfectForms) that the user would interact with. After this user interaction, a number of parameters would need to be passed back to the form and used to populate specific form fields. The second window would then close and the user would complete the rest of the form and then submit it.
I know that I can open a new window from a form instance and provide a specific URL for this. What I can't work out how to do is how to pass the parameters back to the form once the user has finished with the pop-up window. Is this possible?
I was looking at the API but not sure about using this. If the form instance hasn't been submitted yet can I edit it? If so, is it possible to get hold of the instance within the code controlling the second window and then update it? It doesn't look like I can pass the instance id to the URL as this is a fixed string.
Any help would be appreciated.
