We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

ui action pop up

zx
Tera Contributor

As shown in the figure below, I added a button called 'delete' on the screen and wrote a pop-up code in the UI action. However, when I clicked the 'delete' button, it did not pop up. Why is this?

1 ACCEPTED SOLUTION

@zx please remove condition and update function in o'clock field....please click accepted as solution and helpful if it works 

View solution in original post

5 REPLIES 5

Hemanth M1
Giga Sage

Hi @zx ,

 

"resolveDelete" function call should be in the Onclick field not on the Condition (Condition field is to control visibility)

 

Change and try

HemanthM1_0-1726629898774.png

 

Hope this helps!!!

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

Hi @zx ,

 

Did this resolve your issue??

 

 

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

Kamal17
Kilo Sage

@zx Remove the function call from the "condition" field. Instead, use the function call in the "onClick" field shown in the below image. This will solve your issue.

 

Kamal17_0-1726630293648.png

 

PS: Please hit "Correct", "Helpful" or "Like" depending on the impact of the response.

 

Regards,

Kamal S

Mani A
Tera Guru

@zx  please move your client function call to "Onclick" field  from condition.