- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2025 04:15 AM - edited 03-27-2025 04:35 AM
I have a requirement where i want to show instructions with some link on catalog item based on choice selected in previous variable in catalog item. i have created a variable with type = custom and created UI macro and UI policy show the variable but it is not woking, please help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2025 01:27 AM
then why not do this
1) create a widget and add the link there, hide that by default when widget loads
2) create a variable of type Custom and add the above widget there
3) then detect change of variable in your widget, once you get the value in widget show/hide the link
this link should help you
Widget that reacts to onChange event of Variable
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2025 04:44 AM
it's not possible to show/hide variable of type Custom using UI policy or client script
why not show a form message with link using g_form.addInfoMessage() based on change of that variable?
are you only intending to use platform and not portal for your catalog item?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2025 08:12 PM
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2025 01:24 AM
@Ankur Bawiskar we are going to use portal for this requirement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2025 01:27 AM
then why not do this
1) create a widget and add the link there, hide that by default when widget loads
2) create a variable of type Custom and add the above widget there
3) then detect change of variable in your widget, once you get the value in widget show/hide the link
this link should help you
Widget that reacts to onChange event of Variable
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader