- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-12-2018 01:54 PM
I currently created a catalog form that has the following items on it.
Multiset [made up of my variable set.]
The multiset is made up of a variable set that has the following variables in it.
- u_firstname [single line string]
- u_lastname [single line string]
- u_emailaddress [email address]
The multiset itself can have up to 10 instances of the variable set, so i should be able to create more than one in the form if i so choose. My question here is within a workflow how can i iterate through the number of variable sets that i have? i don't think i can do something like
var itemarray[];
var items = current.variables.multisetname
for (i=0;i<items.length;i++){
var firstname = items[i].firstname;
var lastname = items[i[.lastname;
var emailaddress = items[i].emailaddress;
do something with the variables.
}
i was wondering if anyone has done this before.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2018 06:45 AM
I have to ask what the purpose of the form is. Is this to just add records to a table? Is it something else? Probably the easiest way OOB to do this is to change your Catalog Item to use the Cart. That way users can add to the cart and can do so multiple times.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2018 06:48 AM
The purpose of the form is to add a bunch of people to azure active directory through the form. I wanted to give the end user the ability to add more than one person at a time instead of adding one, and then having them submit, then go to the form again and have them add another person and submit. I like your idea of just adding the item to the cart and continuing to enter things in. I can do it that way for sure.