The Now Platform® Washington DC release is live. Watch now!

Help
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to restrict or disable the add button in Multi Row Variable Set after the 5th Row?

RISHAV SANSON
Mega Contributor

I have to restrict the number of rows to 5 but i am not be able to restrict or disable the add button. Could you please share some thoughts or suggestions ? 

33 REPLIES 33

SAK
Kilo Guru

Hi Experts,

 

We have a requirement to hide the add button in multi row variable set in catalog tasks.

Please suggest a way of achieving it.

shanmukhasai
Kilo Contributor

Hello,

We have a requirement to remove the RemoveAll Button, I was able to do it using DOM Manipulation, but would like to hear if there are any other ways in achieving it,

To Remove Add Button:

var x = document.querySelectorAll('[id*="add"]');
var i;
for (i = 0; i < x.length; i++) {
x[i].style.visibility ="hidden";

}

 

Thanks,

Shanmukha

Hi,

 

Could you please let me know where did you add this DOM manipulation in catalog client script? Could you provide step by step process it will be of great help.

 

Regards,

Swathi

Hi,

I just added it in a On Load Client Script so that when the form loads the "Add" Button on the Multi-Row Variable Set will be hidden automatically.

But, if your Multi-Row Variable Set is not visible on load of the form, then based on the visibility condition of the of the Multi-Row Variable Set field you could add the above script.

 

Thanks,

Shanmukha