How to open new URL after form submission
I am working on AEM 6.5 and am trying to open a new URL after form/data submission.
I have tried:
xfa.resolveNode("subEnd.subEndPage.subEndText.btnSubmitButton").execEvent("click");
xfa.host.messageBox("Thank you for completing the survey");
xfa.host.gotoURL("https://newURL");
Result: Data submits but doesn't go to new url
xfa.resolveNode("subEnd.subEndPage.subEndText.btnSubmitButton").execEvent("click")
xfa.host.messageBox("Thank you for completing the survey");
app.launchURL("https://newURL", true)
Result: Data does NOT submit but goes to URL in same tab (not a new one).