Adding a counter to track total records entered in a multi-row Variable Set
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2024 10:36 PM
Hello,
Currently i have a multi row variable set on a catalog item to allow the input of First and last name. Is there a way that i can add a secondary variable that acts as a counter to this multi row? Ex. If two users are added into the Multi row then the number 2 will populate in the counter variable?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2024 10:41 PM - edited 06-13-2024 10:42 PM
Hi @Tyler Johnson :
Can you state the purpose of your counter? if it is for restriction of the no of rows that can added we have an attribute "max_rows=10" that can be used to achieve it
Mark this as Helpful / Accept the Solution if this clears your issue

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2024 10:48 PM
Hi @Tyler Johnson ,
This is going to be a custom solution as there is nothing OOTB available to meet your requirement.
You can refer to the solution provided :https://www.servicenow.com/community/developer-forum/how-to-count-the-records-added-in-multi-row-var...