Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

How to hide Add button in multi row variable set after the 2 entries

Shweta Kasbe1
Tera Contributor

How to hide(disable) Add button in multi row variable set after the 2 entries.Please guide me how can i achieve this.

I tried the below script it didn't worked.

   var my_var = g_form.getField("present_address");
my_var.max_rows_size = 0;

find_real_file.png

 

1 ACCEPTED SOLUTION

Hi,

you need to add here

find_real_file.png

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

10 REPLIES 10

Not applicable

Hi @Shweta Kasbe ,

This article should help you :

https://community.servicenow.com/community?id=community_article&sys_id=376e4dfadb7698d0fa192183ca961...

 

Mark my answer correct & Helpful, if Applicable.

Thanks,
Sandeep

Jaspal Singh
Mega Patron

Hi Shweta,

Did you try passing attribtue max_rows=2 to the MRVSs Variable Set attributes field?

Field named: Variable Set attributes can be added to MRVS form & above value can be passed.

This will gray out the Add button after 2 entries.

Tried didn't worked for me

Didn't work? Above will simply gray out the button. It will not hide it?

Or are you saying even the button was not grayed out after passing variable attribute?