Require at least 1 row on multi-row variable set

JC S_
Mega Guru

We are using a multi-row variable set on our catalog item and we need to require the user to enter at least 1 row before he can submit the catalog item. Any ideas for this?

1 ACCEPTED SOLUTION

Mark Roethof
Tera Patron
Tera Patron

Hi there,

You can just add a UI Policy without conditions (so that it runs onLoad) + a UI Policy Action where you select the Multi Row Variable Set name within the Variable Name field. The Multi Row Variable Sets are listed there, together with the regular Catalog Item variables.

Below an example. "Donor expenses" is actually a Multi Row Variable Set (= tested, works in a production environment).

find_real_file.png

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

View solution in original post

2 REPLIES 2

Mark Roethof
Tera Patron
Tera Patron

Hi there,

You can just add a UI Policy without conditions (so that it runs onLoad) + a UI Policy Action where you select the Multi Row Variable Set name within the Variable Name field. The Multi Row Variable Sets are listed there, together with the regular Catalog Item variables.

Below an example. "Donor expenses" is actually a Multi Row Variable Set (= tested, works in a production environment).

find_real_file.png

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Hi Mark - appreciate the help. This worked perfectly.

I did some more digging on MVRS and in case there will be requirement to limit the actual rows that can be entered by the user you can refer on this community thread.