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.

How to place button on bottom of form and not up top?

Roger11
Giga Guru

We have a form that we want to keep major record functionality buttons up top of the form (and below) but for buttons that have a "process" flavour that only applies to very limited roles we would like to only show the button UNDER the form - is it possible?


Only want to add button down below...hide it up top..

Roger11_0-1702522893844.png

 

1 ACCEPTED SOLUTION

Danish Bhairag2
Tera Sage
14 REPLIES 14

@Roger11 ,

 

Did u make isolate script value as false for UI policy?

 

that is the default - I've never used it, don't know what it does off the top of my head.

 

@Roger11 ,

 

In order for the script which u wrote in UI policy to take effect u need to uncheck the isolate script field.

 

Thanks,

Danish

 

additionally to the above, we found that we were having trouble creating incidents as errors were being thrown.

Roger11_0-1702531659116.png

So I threw a try/catch around the code.

Roger11_1-1702531708405.png

 

 

Roger11
Giga Guru

There's no mention if the UI action has to be a "Client" one. But it has some gliderecord activity and has to run on the server.

Roger11_6-1702524938745.png