Add pages into the sp widget

Apaul
Tera Contributor

TribalChief_0-1748942673827.png

How to add this copy_of_hrm_todos_page_2 into the Copy of HRM Todos Summary widget?

TribalChief_1-1748942719479.png

 

Please help me to solve this.

3 REPLIES 3

Roshnee Dash
Tera Guru

Hi @Apaul 
You can try like this once.

1. Open the Widget Editor

  • Navigate to Service Portal > Widgets in ServiceNow.

  • Locate Copy of HRM Todos Summary and open it for editing.

2. Modify the HTML Template

  • In the Body HTML Template section, find the appropriate place to insert copy_of_hrm_todos_page_2.

  • You can reference it using an <iframe>, <div>, or another suitable HTML element.

3. Update the JavaScript Code

  • If copy_of_hrm_todos_page_2 requires dynamic data or interactions, update the Code (JS) section.

  • Ensure that the script correctly fetches and displays the content.

4. Save and Test

  • Save the widget and preview it in the Service Portal.

  • Verify that copy_of_hrm_todos_page_2 is correctly integrated.

Alternative Approach

If copy_of_hrm_todos_page_2 is a separate widget, you might need to clone the HRM Todos Summary widget, modify it, and then add the cloned version to the relevant page

Your feedback makes the community stronger! If you found this helpful, marking it as the correct answer helps others.
Stay awesome,
Roshnee Dash

Also, your solution is partially correct, what i have seen, with this you need to create a page route maps too.

Hi @Apaul 

If you found my response helpful, please mark it as correct and close the thread so others can benefit from it too.

Your feedback makes the community stronger! If you found this helpful, marking it as the correct answer helps others.
Stay awesome,
Roshnee Dash