- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2020 04:30 AM
Hi,
I cloned oob ticket form and using the page to auto redirect from the record producer script as shown below
producer.portal_redirect = "sp?id=copy_of_ticket_old&is_new_order=true&table="+current.getTableName()+"&sys_id=" +current.getUniqueValue();
Once i submit the record producer it is redirecting to the right page but the Dynamic Page title is not setting properly
In the cloned page i created a Dynamic Page title as shown below
I just copied the oob the ticket form dynamic page title.
When i submit i getting the page title but not the record producer title
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2020 08:10 AM
Hello,
In the cloned page you can place the code in any widget. The above code is to trigger an event present in breadcrumb widget. The code will update the bread crumbs displayed in the portal page.
In the OOB bread crumb widget
https://XXXXX.service-now.com/nav_to.do?uri=sp_widget.do?sys_id=0fb269305b3212000d7ec7ad31f91ae2
There is a code in client controller section where the responder is defined. For more information you can refer the below exercise on emit and respond angular events
https://developer.servicenow.com/dev.do#!/learn/learning-plans/paris/servicenow_application_developer/app_store_learnv2_serviceportal_paris_exercise_emit_and_respond_to_events
Thanks,
Jagadeesh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2020 04:52 AM
Your dynamic page title record is pointing to a different table than the record shown in the second screenshot. sc_req_item vs the screenshot showing table=incident. You need to create a dynamic filter for each table that is going to be specified.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2020 05:54 AM
So i have 5 record producers that points to different tables and i need to create 5 dynamic page title ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2020 07:05 AM
Hello,
Can you provide the oob page you have cloned? Want to check if the page is csm_ticket or any other form pages. You can dynamically update the breadcrumbs title from any widget in the cloned page. You might have to get the details you want to display like the Title you want to display and the url (could be the same page link) in the updated widget.
Once you got the details you can call the $rootScope.$emit('sp.update.breadcrumbs', data);
where the data will the list of objects that contains the details of the page title and link in below format
var data = [];
var obj ={};
obj.label = <desiredName>
obj.url = <pageURL>
and push the obj to the data
data.push(obj);
Please make sure that the main home> link is also parent in the data list as first entry where the label could be Home and url could be the hompage for the portal and have the dynamic page object as second entry
after this you can call $rootScope.$emit('sp.update.breadcrumbs', data);. Make sure to add $rootScope in client controller function parameters
Thanks,
Jagadeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2020 07:21 AM
Hi
Thank you for the reply. I cloned the OOB Ticket form with id: ticket page.
And i am sorry i did not understand the above script and where i need to place that ?
Can you please help me in understanding little bit more ?