Forums

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

Operating with multi-select fields in Confiforms IFTTT

Jnr May 4, 2021

I am playing with Confiforms multiselect fields and was wondering how to access members in that array so that I can pass them to another IFTTT service url as parameter. See the example below:

 

  1. I transform multi-select array in this way in the format I need
    • [entry.multi.transform(label).join(&name=)]
  2. It makes the result in an array and adds &name= in between:
    • Element1 Name&name=second Name1&name=one More Name
  3. I add transformed array to 'Service URL' (one of the options):
    • /groups?permission=PROJECT_WRITE&name=[entry.multiWrite.transform(label).join(&name=)]
    • /groups?permission=PROJECT_WRITE&name=[entry.multiWrite.transform(label).join(&name=)]
  4. Then the error result the text is different:
    •  all the spaces are replaced with +, e.g. 'Element1+Name'
    •  &name= is replaced to %26name%3D
    •  &name= is replaced to %26name%3D

 

Is it possible to turn off this unnecessary character transformation?

If not, then how can I access element one by one and fire a lot of IFTTT actions depending on the size of multiselect if this is not possible? 

 

 

1 answer

0 votes
Alex Medved _ConfiForms_
Community Champion
May 6, 2021

Hi

Before sending the request to your service the parameters get URL encoded. This is what happens. Why this is a problem? 

Alex

Jnr May 21, 2021

the consumer of API doesn't like percentage signs :) Is it possible to turn off this encoding?

 

 

I would like to use multi-select values and each second value start with "&name=". E.g. item1&name=item2&name=item3.

This construct is done by [entry.multi.transform(label).join(&name=)] and would like that won't be transformed to %%%% in REST URI

Alex Medved _ConfiForms_
Community Champion
May 21, 2021

We need to properly URL encode the URLs before doing the requests - this is the way it works. 

And you need to url decode the parameters on your consumer service. Just like everybody does

At the moment there is no way to "turn this off", sorry

Alex

Jnr May 24, 2021

Ok, will not use this element then :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events