Trigger Multi-Row Variable Set modal to open.

Elias Moser
Tera Contributor

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".

EliasMoser_0-1747816324495.png

 

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.

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@Elias Moser 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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.

EliasMoser_0-1747817428858.png

 

@Elias Moser 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Like ive mentioned, it doesnt work via DOM for me anyways:

EliasMoser_2-1747818494721.png

In that case, ill just let my customer know, that this is not possible and just find another approach.