Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confiforms: Change format of checkbox group value

Kruttika Swaminathan April 30, 2020

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!

1 answer

0 votes
Alex Medved _ConfiForms_
Community Champion
April 30, 2020

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.....

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events