We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Hide UI Action on form

Dariussiriuse
Tera Contributor

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

9 REPLIES 9

Dariussiriuse
Tera Contributor

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

Not applicable

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

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.

Not applicable

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