Variables are getting populated for catalog form

ramkumarjai
Tera Contributor

Hi Community,

We are currently designing a parent catalog item that consolidates multiple existing catalog items.

For example, we have four catalog items:
• Catalog A
• Catalog B
• Catalog C
• Catalog D

We created a single parent catalog item and added a dropdown variable that lists these catalogs (A, B, C, D). Based on the user’s selection, the relevant variables for the selected catalog item are shown dynamically.

The variables for each catalog item (A, B, C, D) are either copied from or referenced from their respective original catalog items. The visibility is controlled using UI Policies and Client Scripts, similar to how they work in the original catalog items.

Problem Statement

When a request is raised from the parent catalog item, and the user selects Catalog B, the variables appear correctly on the catalog form. However, after submission:
• Most of the variables related to Catalog B do not appear at the RITM (Requested Item) level
• The same variables appear correctly when Catalog B is requested directly (not through the parent catalog)

What We Have Checked So Far
• UI Policies
• UI Policy Actions
• Client Scripts
• Variable configurations
• Variable names and types

All configurations match the original Catalog B setup, and there are no differences in scripts or policies.

8 REPLIES 8

nayanmule
Tera Guru

You can use an order guide for your requirement.

 

Best Regards,

Nayan

Matthew_13
Tera Guru

@ramkumarjai - The issue has happened to me and it was because dynamically shown variables on a parent catalog item aren’t automatically saved to the RITM. Copying variables from child items doesn’t preserve their mapping.

Fix:

  • Use variable sets for each child catalog and attach them to the parent item.

  • Show/hide these sets dynamically based on the dropdown selection.

This ensures the right variables appear on the RITM after submission.

 

@ramkumarjai - Please mark as Helpful or accepted if you find useful. Thanks Kindly!

 

Ankur Bawiskar
Tera Patron
Tera Patron

@ramkumarjai 

Since you said you are using UI policy and client scripts, they should also apply on Requested Item View

AnkurBawiskar_0-1766386659303.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

nayanmule
Tera Guru

Make sure you have selected 'Applies on Requested Item' and 'Applies on Catalog Task' in your UI policies.

 

Regards,

Nayan