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.

onClick UI Action in Service Operation Workspace

Alon Grod
Tera Expert

Im trying to edit the 'Implement' UI Action on the change_request table. The problem is that after I click on 'Implement', the page loaded and I can see that 'assigned_to' is mandatory for one second and then he changes to not mandatory again. What am I doing wrong?

WhatsApp Image 2023-11-28 at 16.35.12 (1).jpeg

1 ACCEPTED SOLUTION

Hello @Alon Grod 

 

Try removing g_form.save();, as the page loading is happening because of this only.

 

Plz mark my solution as Accept, If you find it helpful.

 

Regards,

Samaksh

View solution in original post

3 REPLIES 3

Samaksh Wani
Giga Sage

Hello @Alon Grod 

 

You need to remove g_form.update();

 

Plz mark my solution as Accept, If you find it helpful.

 

Regards,

Samaksh

@Samaksh Wani still not working. I see that assigned_to is populated with desired value and becoming mandatory but then the page loaded and the value cleared and the field is not mandatory anymore. I disabled all client script and ui policies but its still not working.

WhatsApp Image 2023-11-29 at 09.20.20.jpeg

Hello @Alon Grod 

 

Try removing g_form.save();, as the page loading is happening because of this only.

 

Plz mark my solution as Accept, If you find it helpful.

 

Regards,

Samaksh