- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2020 02:39 PM
I would like to use a multi row variable set to collect direct deposit information, allowing employees to split their deposit into multiple accounts. However, we would like to limit the number of accounts they can use. Is there a way to set a maximum number of rows/entries?
Solved! Go to Solution.
- Labels:
-
HR Service Delivery

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2020 09:04 AM
Hi there,
You can set a limit to the number of rows that you can add to a multi-row variable set by using the max_rows attribute in the Variable Set attributes field.
Would that help? Don't see a reason for scripting this like others suggested.
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2020 09:04 AM
Hi there,
You can set a limit to the number of rows that you can add to a multi-row variable set by using the max_rows attribute in the Variable Set attributes field.
Would that help? Don't see a reason for scripting this like others suggested.
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2020 06:24 AM
Thanks for your help on this Mark. i have a related question. We want to validate that the user enters a 9 digit routing bank routing number. I see that I can set the variable attributes max_length=9, but that doesn't help if someone enters less than 9 digits. Is there a way to set the attributes on the field to ensure an exact # of digits?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2020 08:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2020 06:25 AM
Thanks for your help again. i have a related question. We want to validate that the user enters a 9 digit routing bank routing number. I see that I can set the variable attributes max_length=9, but that doesn't help if someone enters less than 9 digits. Is there a way to set the attributes on the field to ensure an exact # of digits?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2020 08:59 AM
max_length attributes works only for Single-line text, Wide single-line text type of variables.
You can write onsubmit client scipt for your catalog item to restrict length less than 9 digits like below using regex
Thanks to
Regards,
Sachin