multiple variable set
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2024 10:14 AM
Hi team,
Hi team,
Can we restrict the number of rows in a multi-variable set depending on a selection made by a user? We have a select box with choice values from 1 to 5 when the user selects 2, multi-row vs. Should have only 2 rows, (add button must be disabled after that).
Regards,
Manasa.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2024 10:20 AM - edited 04-10-2024 10:20 AM
Hi there,
If scripted, something like this would do:
var field = g_form.getField("variable_set");
if (field != null) {
field.max_rows_size = 3;
}
Just update to the correct MRVS, how many rows and a condition ofcourse for your use case.
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field