After submitting form using 'Submit Record Producer (SP)', next page is not opening
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
A form is there, where we are putting all mandatory fields. However when submitting the form using 'Submit Record Producer (SP)', it should navigate to a next screen and should show some case number with its details.
Currently, it is not navigating to the next screen and execution gets started for the next steps. Though I applied enough wait time, so that submission should be done and it can navigate to the next screen.
Please suggest me solution for the same and help me out in figuring out that why it is not navigating to the next screen?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
51m ago
Hi @indusahu
The portal submits data asynchronously before redirecting. The test moves on before the portal receives the server response and triggers the new page.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0695238
This helps other users find accurate and useful information more easily
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
31m ago
this is for ATF?
how is it behaving for manual submission?
what's the error shown?
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
29m ago
Hello @indusahu ,
To redirect a user to a specific screen and display the newly created case number and details, configure the redirection natively inside the Record Producer's Server Script using producer.portal_redirect.
1.Navigate to Service Catalog > Record Producers and open your specific record producer.
2.Scroll to the Script field at the bottom of the definition.
3.Add the producer.portal_redirect property using the current.sys_id and current.number of the newly created record.
// Ensure you target your specific custom page and pass parameters
producer.portal_redirect = "sp?id=your_custom_page&sys_id=" + current.sys_id + "&number=" + current.number;
4.On your destination Service Portal page (your_custom_page), create or use a widget that reads the sys_id or number URL parameters via $location.search() (or $scope.page.g_form / data fetched via a server script) to query and render the case details.
"If you found my answer helpful, please like and mark it as an "accepted solution". It helps future readers to locate the solution easily and supports the community!"
Thank You,
Sujit Jadhav