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

@Jithender123 

try giving some other function name in the onClick field

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

its still the same, not working.. unable to save it

@Jithender123 

you are not able to save the UI action itself?

what error it's giving?

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

please check the attached.

@Jithender123 

are you sure you are creating UI action with admin role?

try to logout and login again

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