The Zurich release has arrived! Interested in new features and functionalities? Click here for more

how to change the color of "Approve" and "Reject" buttons which are present on the Approval Form with onload client script.

Tejas16
Tera Contributor

On loading of the Approval form, change the colour of the Approve button to "Green" and Reject Button to "Red".

 

I have used getControl() Method but the issue is the buttons which are present on form context menu they are uncolored.

 plz check the attached files.

6 REPLIES 6

suvro
Mega Sage
Mega Sage

You can follow the below thread

https://community.servicenow.com/community?id=community_question&sys_id=4111773ddb96ff40190dfb24399619c7

 

Mark the answer correct if it helps you

Tejas16
Tera Contributor

I do not want to used try and catch block. plz give me the solution using any other method or  getControl() Method 

Try this

https://community.servicenow.com/community?id=community_question&sys_id=d2494725db5cdbc01dcaf3231f9619e4

sawyan3
Tera Contributor

https://community.servicenow.com/community?id=community_question&sys_id=d2494725db5cdbc01dcaf3231f9619e4

 

just try the formatter method.A good catch.