How to confirm a confirm modal in client script in UI Builder

shanker1
Giga Guru

Hi,

Can anyone please on the below use case:-

I want to call a confirm modal in the on submit button of risk workspace.

The modal should have a Yes or No button

On click of Yes, the page should get submitted.

On No, I've to populate a message alert to the user.

 

I've configured the modal confirm. But I want this to be called from within the UI page client script, rather than at the event handler. 

 

Please suggest

 

Thanks!

2 REPLIES 2

Bhuvan
Kilo Patron

@shanker1 

 

Follow below articles to create this,


https://www.servicenow.com/community/itsm-articles/client-side-and-server-side-code-in-one-ui-action...

 

https://www.servicenow.com/community/next-experience-articles/how-to-use-ui-actions-in-workspaces/ta...

If this helped to answer your query, please mark it helpful & accept the solution.

 

Thanks,

Bhuvan

 

Ankur Bawiskar
Tera Patron
Tera Patron

@shanker1 

is that a form UI action or declarative action?

share some screenshots how you configured 

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