how to change the color of "Approve" and "Reject" buttons which are present on the Approval Form with onload client script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2022 11:17 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2022 11:23 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2022 11:36 PM
I do not want to used try and catch block. plz give me the solution using any other method or getControl() Method
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2022 12:15 AM
Try this
https://community.servicenow.com/community?id=community_question&sys_id=d2494725db5cdbc01dcaf3231f9619e4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2022 12:06 AM
https://community.servicenow.com/community?id=community_question&sys_id=d2494725db5cdbc01dcaf3231f9619e4
just try the formatter method.A good catch.