Forums

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

What is the structure of a ConiForms parameter to append a value to a Smart Multi-Select field?

Wade Meredith August 5, 2020

I cannot seem to structure a parameter string correctly in an IFTTT Create/Update ConfiForms Entry Macro to append a value to an existing Smart-Select field. I can set the value completely by feeding it an [entry.id] string, but that removes existing values. If I just get the existing values and .append() an entry id, it breaks. Does anyone know how to do this?

2 answers

2 accepted

0 votes
Answer accepted
Wade Meredith August 5, 2020

I figured this out with help from @Alex Medved _ConfiForms_

A multi-value field wants a comma separated list of id's. So, to append to it rather than just set the value, you have to first get the current value, transform it into a list of id's, append your new id to that list with a leading comma, and then set that as the value. The function looks like this:

someMVField=[entry._func.asRef([entry.someMVField.transform(id).asList])],[entry.id]

This isn't a completely straightforward solution, because of some other things going with my particular setup referenced in the link posted by Alex above, but it should get you close.

0 votes
Answer accepted
Alex Medved _ConfiForms_
Community Champion
August 5, 2020
Wade Meredith August 5, 2020

Yes. I had just made some progress on that one, so I was able to ask in a clearer way. Now that we got on that other thread, I'll post the solution here.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events