why confirm() is not working in ui action button

Jithender123
Tera Contributor

I am trying to create a button on incident table named password reset, for this I need a confirm box saying "are you sure you want to reset password" (yes/no). but unfortunately when I use confirm(), its not saving.

 

Please assist.

16 REPLIES 16

Bharath24
Tera Expert

Hi @Jithender123 

Have you configured  server side script when the user clicks yes? To continue with the functionality if confirmed.
Regards
Bharath

yes.. please check the attached.. its not allowing me to save

@Jithender123 

is it going inside the confirm box?

please share the complete script and also where are you using it? native or portal?

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

Hi @Ankur Bawiskar ,

as I am using confirm(), I am unable to save it at least. first I just wanted to save it with confirm().

my requirement is when I click on the button it should pop up a confirmation yes or no , if yes then it should check the affected_user is active or not.