- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2025 08:50 AM
Hi everyone,
I have a requirement where two variable sets: "Shipping Information" and "Billing Information" are there. I need to show "Shipping Information" first if a user checks the checkbox "Ship to a different address" variable. And if "Ship to a different address" is unchecked then "Billing information" would be showing first.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2025 09:07 AM
Hi @surbhibarnw ,
To dynamically reorder variable sets like "Shipping Information" and "Billing Information" based on a checkbox ( "Ship to a different address"), this is only possible via DOM manipulation using a Catalog Client Script.
ServiceNow does not natively support reordering variable sets at runtime, but you can achieve the desired behavior with DOM manipulation, which is not a best practice and not recommended by ServiceNow.
Please mark this as helpful and correct if this answers your question.
Thanks,
Yaswanth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2025 09:07 AM
Hi @surbhibarnw ,
To dynamically reorder variable sets like "Shipping Information" and "Billing Information" based on a checkbox ( "Ship to a different address"), this is only possible via DOM manipulation using a Catalog Client Script.
ServiceNow does not natively support reordering variable sets at runtime, but you can achieve the desired behavior with DOM manipulation, which is not a best practice and not recommended by ServiceNow.
Please mark this as helpful and correct if this answers your question.
Thanks,
Yaswanth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2025 09:57 AM
Hi @surbhibarnw
Maintain the lower order to shipping information variable set and using UI policy or client scripts you can show/hide the variable sets.
Thanks
Prashanth R
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2025 12:54 AM
I have already tried this using UI policy but no luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2025 01:47 AM
Hello,
This is not possible to do. Variable set can't be reordered dynamically.
Best Regards,
Brahmjeet