multiple variable set

Manasa Allu
Tera Contributor

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.

1 REPLY 1

Mark Roethof
Tera Patron
Tera Patron

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

LinkedIn