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

I just tested in a London instance and "producer.portal_redirect = 'sp?id=sc_cat_item&sys_id=38c1fc840a0a0b2700285921c2bf5fc8&sysparm_category=e15706fc0a0a0aa7007fc21e1ab70c2f';" (which is what the URL is on the initial load of the record producer) reloads the page when I click Submit. 

Do you get any errors either in the system logs or the browser console?

Yes. I got the following in the browser console.

 

find_real_file.png

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... 🙂

Hi there - Did this get resolved?  I have the same issue where the redirect works great but the form stays filled in - hitting F5 clears it.  

Thanks!

Tim Deniston
Mega Sage
Mega Sage

For platform UI, use:

producer.redirect="home.do";

For Service Portal, use:

producer.portal_redirect = "sp?id=sc_home"

See this page for more info: https://docs.servicenow.com/bundle/madrid-it-service-management/page/product/service-catalog-management/concept/c_PopulatingRecordData.html