Custom with label Type variable is not visible in Ritm,Task and Report
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2023 06:51 AM
Hello Everyone,
Can anyone please let me know the usage and scope of custom with label type variable in catalog item. I have a variable with this type and I'm calling a widget to select some options from a table in dropdown. After submission of the form all the other variables are visible in variable section of ritm and sc task except this custom with label variable.
Also when I'm trying to create a report on the catalog item, all the variables value is showing properly. But for this custom with label type variable it is showing blank.
Can anyone please help to resolve this issue
Thanks,
Srishti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2023 07:09 AM
that's because that variable shows information using HTML information inside widget so it's not actually stored somewhere unlike other variables which are stored with their value into table Variable Ownership [sc_item_option_mtom]
So unless you store the options and choices and the selected value in some hidden variable you cannot do this.
if you store the value selected by user you can use some scripting inside widget to show that value as selected choice.
Somehow you need to detect you are on RITM/SC Task form and not on catalog form for your logic to work fine
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
09-13-2023 07:16 AM
Can you please tell me how I can store the value of selected option in another hidden variable. I tried doing this by creating a on change catalog client script but it didn't work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2023 10:10 PM
have a hidden variable text variable and whenever html value changes for the element in widget set the value and hide the variable
when widget loads check if this is RITM or SC TASK form
If yes then get value from that hidden variable and set the value again
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