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  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

10 REPLIES 10

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

the max_rows=2 variable attribute should work for you.

This needs to be added to the MRVS variable set

Share the screenshot of your variable set configuration

Regards
Ankur

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

find_real_file.png

Hi,

you need to add here

find_real_file.png

Regards
Ankur

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

Thankyou this worked for me