Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

After submitting form using 'Submit Record Producer (SP)', next page is not opening

indusahu
Tera Contributor

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?

 

@Vikram Reddy 

9 REPLIES 9

@indusahu 

this is for ATF?

what's the error shown?

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Sujit Jadhav
Tera Guru

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




SohamTipnis
Mega Sage

Hi @indusahu,

 

Look for the Standard Ticket Configuration, where there is already an OOTB option that allows you to add that ticket page, which shows the summary type of the ticket, if that's what your actual requirement is.

 

Let's go through this System Navigator -> Standard Ticket Configuration -> Incident 

 

SohamTipnis_0-1787661857838.png

 

 

Let me know if this helps!! ðŸ˜‰

 

If you find my answer useful, please mark it as helpful and correct. â€Œâ€ŒðŸ˜Š


Regards,
Soham Tipnis
ServiceNow Developer || Technical Consultant
LinkedIn: www.linkedin.com/in/sohamtipnis10

@SohamTipnis can you please reattach the screenshot. It's blurr.