I am trying to make a WebService Request based on the form contents. I have a field called "f1" that is a checkbox group with 3 values (3 checkboxes). I need to send this in the URL path to a REST PUT request. Currently, if i just include it in my URL, on form submission, it gets included like this (example with just 2 of the 3 checkboxes selected):
/example?f1=["1","2"]&f2=2.....
Of course, REST doesn't like this. Is there a way to make it such that it gets sent as:
/example?f1=1,2&f2=2.... OR /example?f1=1&f1=2&f2=2...
Any other suggestions welcome too!
You can transform the values just as you like - see https://wiki.vertuna.com/display/CONFIFORMS/Virtual+functions
So this can be something like
/example?f1=[entry.f1.asList]&f2=2.....
or
/example?f1=[entry.f1.transform(id).asList]&f2=2.....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.