Trigger Multi-Row Variable Set modal to open.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2025 01:35 AM
In the screenshot provided below, you can see that i have this Multi-Row variable set, which opens this Modal, as soon as you click on "Add".
Is there any way i can open this modal trough the client script of my widget? Ive attempted clicking the button via DOM, however this is not a clean solution and didnt work anyways.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2025 01:41 AM
I won't recommend using DOM manipulation
what's the business requirement to open it using script?
Let users click "Add" and add the rows.
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
05-21-2025 01:54 AM
Thanks for your response!
In this order guide you can also select contractors which have already been registered once. If you tick one of the past contractors, it should open that modal with their data prefilled in it beacuse additional data needs to be filled by the user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2025 02:03 AM
I will suggest and inform customer that this requirement requires DOM and is not a best practice.
Instead let the users be trained on how to use and deal with the MRVS.
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
05-21-2025 02:09 AM
Like ive mentioned, it doesnt work via DOM for me anyways:
In that case, ill just let my customer know, that this is not possible and just find another approach.