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

How to hide all the Ui actions in a custom view

Roshini
Tera Guru

I have a Ui action name "on hold", this Ui action will be calling a particular view  "on_hold", but this view is having all Ui actions. But I don't want to display  any Ui actions/Ui buttons in the popup view. Can someone help

1 ACCEPTED SOLUTION

Roshini
Tera Guru

Was able to achieve it with below code

var items = $$('BUTTON').each(function(item) {

   
            if (item.innerHTML.indexOf('Update') == -1) {              
                item.hide();
            }

View solution in original post

3 REPLIES 3

Anurag Tripathi
Mega Patron

There is no direct way to do it , You will have to add the Add this to each ui action individually.

 

Open the ui action and at the bottom you will find this related list

AnuragTripathi_0-1729607418311.png

 

Click on Edit and add views you want this to be visible to.

 

 

-Anurag

Roshini
Tera Guru

Was able to achieve it with below code

var items = $$('BUTTON').each(function(item) {

   
            if (item.innerHTML.indexOf('Update') == -1) {              
                item.hide();
            }

Hi @Roshini ,

 

Will this hide all the UI actions of the popup? Also, what is the button parameter and is it client script?