Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Confirm button on GlideModal not working in UI Action

matthew_hughes
Kilo Sage

I've created the following code for my UI Action, which includes my GlideModal and a function:

 

matthew_hughes_1-1689849253316.png

 

When a user clicks the Confirm button, it should run the generateorContinueAssessment(). However, when I click the 'Confirm' button the following is happening:

 

matthew_hughes_3-1689849401263.png

 

I was just wondering if somebody could explain why this is happening and what I need to do to stop it.

 

 

1 REPLY 1

Community Alums
Not applicable

In your code, you have an onclick=confirm() which is popping up the second confirm window.  If you name your function something else, like confirmAMA then make your onclick=confirmAMA() your code should work.