UI page on record producer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2016 07:30 AM
Hi,
I have created the following UI page (pop-up) for my record producer upon submission, but for some reason, the pop-up window just flashes for a second.
Here's my onSubmit() catalog client script:
Is there anything I'm missing? What can I add to my catalog client script so that the UI page pop-up will display for a few seconds before being re-directed to the newly created record?
Thanks,
Maria

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2016 09:05 AM
Hi Maria,
Likely what's happening is that the server-side code that handles the redirect is executing just after the onSubmit() action is processed. If you want a momentary pause between the pop-up being displayed and the page redirect, you can add a delay to the submit action to allow time for the UI Page presentation. To do this, you can add the following to the beginning of your record producer script:
gs.sleep('5000'); // milliseconds to wait before continuing
producer.redirect="home.do";
Thank you,
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2016 10:02 AM
Hi Brian!
Thanks for the response! It does work, but only some times. Other times, instead of getting the pop-up right away, it would show a dialog window that says "Loading....." then my UI page will just show for a quick second.
Maria