Hello Chris,
I’ve done some testing with what you suggested and found something very interesting.
I created my form that contained a set of Checkboxes, all of which had the same name (‘testBox’). The value of each was set to a key value that I am interested in (eg: ‘name.First’, ‘name.Surname’) - instead of simply ‘on’.
When I submitted this with two boxes checked, in the pipeline were the following variables:
Name: Type: Value:
testBox String name.First
testBoxList StringList [name.First, name.Surname]
Various testing with one, three and more checkboxes checked, or not checked, showed good results.
It appears as though when a DSP is submitted and contains form elements with the same name, it puts the first value in the variable of that name (eg: ‘testBox’ = ‘name.First’), but also creates an array with the ‘List’ suffix (eg: ‘testBoxList’) which contains all of the values from the form elements of that name. (Just like in other web language I’ve used before…)
Thank you very much for your direction on this. Exceptionally helpful.
Regards.
Scott
#Flow-and-Java-services#Integration-Server-and-ESB#webMethods