In a Record Producer form, how do you refresh the current URL page after a submission.

jasonjones
Giga Contributor

In a Record Producer form, how do you refresh the current URL page after a submission.   

Information states to not do it a the Catalog Client Script, but doesn't say where to do it.

1 ACCEPTED SOLUTION

There must be an onSubmit client script that's causing the issue. Can you disable any onSubmit client scripts and try again? One issue at a time... 🙂

View solution in original post

9 REPLIES 9

Cody Smith _ Cl
Tera Guru

Hello Jason,

 

To redirect an end user to a particular page after the record producer is submitted, define the redirect link in the Script field using any of the following:
  • producer.redirect: Enables the redirect behavior within the Platform UI.
  • producer.portal_redirect: Enables the redirect behavior within Service Portal.

For example, the following code redirects users to their homepage after the record producer is submitted:

  • Within the Platform UI:
    producer.redirect="home.do";
  • Within Service Portal:
    producer.portal_redirect = "sp?id=sc_home"
The following code gives the id of the record producer:
RP.getParameterValue('sysparm_id')


The script field lives on the Record Producer itself.

If my answer was helpful, or solved your issue, please mark it as Helpful / Correct.
Thank you,
Cody Smith

Cody and Tim,

Thanks.  I did read some of this information, but it didn't state where to add the script.  Also, I assumed it was the Record Producer Script area and did the following:

 

find_real_file.png

 

But upon submission of the form, it still doesn't refresh the page.

Jason

Is that the same record producer you just submitted, but you want a fresh/blank form? 

Yes. Basically, creating an events check-in portal page.  So each time that a record is submitted, I just want the page to refresh itself.  I can manually do this by hitting F5. 

Ideally, I would also like it to hold one of the event variables as well.  In the example below, the page would refresh, but hold the Event constant. 

 

find_real_file.png