- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2022 01:14 AM
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;
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2022 03:38 AM
Hi,
you need to add here
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2022 01:19 AM
Hi
This article should help you :
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2022 02:36 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2022 02:45 AM
Tried didn't worked for me

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2022 02:47 AM
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?