Adding Info message after submitting the record producer portal page?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-26-2022 10:51 AM
Hi everyone,
I am looking to display an info message after the user clicks "submit" on the record producer portal page. This page gets re-directed to itself after submission, so adding a gs.addInfoMessage inside the producer script won't work as the page gets re-directed before displaying the message. Similarly, we have an option to add a query parameter, but that comes with a caveat that any reload or refresh would display the info message again even without the submission.
Any suggestions or workarounds would be much appreciated.
Thanks,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-28-2022 12:50 AM
Use producer.portal_redirect
to set a url with parameters which tell the page to load the info message, then have a widget sit on that page which will run the client script to show the info message whenever it sees that parameter. E.g.
producer.portal_redirect = "sp?id=sc_home&show_popup=true"
And on the sc_home page, add a widget with code to detect this parameter and then display the message. If you need the message to be dynamic you can include additional params for the message.
Doing it this way means that you'll only trigger the message popup when someone submits the record producer, not when they navigate to the page normally