Get All variable values onChange to a widget
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2023 11:55 PM
I have a catalog item with 1 custom variable(Service portal widget mapped) and 5 normal variables like single line text.
In the custom variable, I want to show all the remaining filled variable values and whenever any variable value changes, it should auto update in that widget.
For example: My single line text variables hold 'Abc', 'def', 'ghi', 'jkl', 'mno' values in them then my widget should display
Abc, def, ghi, jkl, mno.
If I update ghi to xyz then immediately, widget should show Abc, def, xyz, jkl, mno.\
How can i do that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2023 09:18 PM
then get all the variables for that catalog item and then add individual logic
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2023 10:36 PM
I tried that and didnt work that's why I posted here.
I have the variables list in an array. So I wrote an for loop to go through the array elements but that logic didnt work.
Please let me know if any suggestions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2023 11:01 PM
what challenge are you facing in that script?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2024 10:05 AM
please help me on below query:
To display values of Multi Line Text in Separate Lines using client script in servicenow
i want display automatically user name and phone number and mail in multi line text field in separateline using setvalue() method, can you help me on this . for instance refer below screen shot: