Hide UI Action on form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2023 02:12 AM
Hi!
So, I am having this situation where I want to hide the OOTB UI Action buttons from a form that belongs to the Global Scope, but I want this to happen on the scoped application.
When I have done ' hide('button_name'); ', it somehow just deactivated it for all forms on my instance.
Sure enough I reactivated it manually, but what if this happens on a future client's instance?
Also, this works, but only at the top of the form, the bottom remains visible.
Any ideas why?
Thanks,
Darius
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2023 02:15 AM
Hi again!
Yeah so in the end, I figured how to decide which to hide based on the conditions I wanted.
it was nothing else but:
hide('button_name'); // for top
hide('button_name_bottom'); // for bottom
Though I still don't understand why the button got deactivated in the first try...
Any thoughts?
Thanks,
Darius
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2023 02:23 AM
Hello @Dariussiriuse
Plz Go to UI Action > Open the Record of UI action
-- Uncheck the active checkbox.
Plz Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2023 03:20 AM
I do want it to be active, so I don't want it deactivated. The issue is actually the fact that it deactivated itself when I first launched my script, which forced me to reactivate it manually.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2023 03:27 AM
Go to UI Action Record,
There will be a Condition Field write this in it :-
current.sys_id == "123"
Plz Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.
Regards,
Samaksh