how to change position of UI Action button
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2023 10:43 PM - edited 07-13-2023 10:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2023 11:22 PM
Hi @Sneha Nair ,
In UI action you can change the position of the button on the basis of order.
Example
Ui Action : Resolve button
Order : -1000
when this is the case the UI action is to the leftmost position
When the order is 100
When the order is 1000
However, Changing the Position from Up to Down,
You can get the id of button and place it in new position.Some work around you have to do which involves DOM manipulation,which is not recommended by servicenow.
example:
document.getElementById("myDIV").style.position = "absolute";
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2023 12:20 AM
hello sandeep , thanks for the response , since i dont want to use DOM Manipulation which is tagged as " curse word of servicenow" is there any better approach to get my requirement done. Does scripting in the UI Action script section work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2023 12:30 AM
Hello @Sneha Nair
For bring it down, You need to check the List Action checkbox in the UI Action Record of that particular UI Action.
Plz Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.
Regards,
Samaksh