Popup Window v New Window on user input actions
I have an app whereas I created a function to add record that autofills a related form field and then script in that form (on user input) fetches the information and autofills additional fields.
I set up the function to open as a popup window. This works to initiate the "
on user input" actions when the lookup fields is autofilled via the function. I get an additional popup window that is blank when I submit the form.
I then changed the function to open the new form in a new window, however, the on user input actions do not work. I cleared the lookup field and reselected the same value that is the function assigns to the form when the form is opened to create a new record and the on user input actions work.
So in summary the problem is that a pop window will engage the on user input fields when autofilled via url, but a new window does not engage the on user input actions automatically when the form is opened and the the lookup field is assigned a value. Even though the popup windows does allow the actions to work, it give an error on submit that does not happen in a new window.
popup window script
- openUrl("#Form:Corrective_Action_Notice?Audit_ID=" + vFet.Audit_Section_Title + "&Checklist_ID=" + input.vCHKID + "&FindingID=" + input.vFNDID + "&viewLinkName=CAN_Assessment", "Popup window");
new window script
- openUrl("#Form:Corrective_Action_Notice?Audit_ID=" + vFet.Audit_Section_Title + "&Checklist_ID=" + input.vCHKID + "&FindingID=" + input.vFNDID, "New window");
I have screenshots but this it is not allowing me to add them now. I will try again shortly