Hi,
I have a form called 'articles' with two fields:
Annd another form 'tags' with fields
I have set up an IFTTT on articles, where onCreate it will create a new entry in 'tags' with tagName=text1, with custom name as 'newTag'
I want to create another IFTTT which adds that newly created tagName (with value text1) to the list of values in 'tagsSelected' automatically.
I can replace the field with the new value like this (and it works):
entryId=[entry.id]&tagsSelected=${iftttResult_newTag.id}
But I can't add the new value on top of any existing ones. I tried:
None of them works.
Thank you in advance.
Peter
Something like this should do the job
entryId=[entry.id]&tagsSelected=[entry.id.asEntryRef(entry.tagsSelected.asList)],[iftttResult_newTag.id]
Thanks. I tried it and the result is that only the new value created by the ifttt [iftttResult_newTag.id] is shown. The original list is not present.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Alex Medved _ConfiForms_ I did some tests with PlainView, and it looks like, the smart multi-select field does not return the values in a comma separated list, but have a space in between if used like this:
[entry.tagsSelected] or [entry.tagsSelected.id] or [entry.tagsSelected.id.asList] or [entry.tagsSelected.id.asEntryRef], etc.
If I check [entry.tagsSelected.asList], it returns with a JSON looking response with a comma in between records like:
{record1 values.....},{record2 values....},{record3 values....}
Using space only, when I use:
entryId=[entry.id]&tagsSelected=[entry.tagsSelected] [iftttResult_newTag]
It does keep the original list, but doesn't add the new value.
If I use the same formula with IDs:
entryId=[entry.id]&tagsSelected=[entry.tagsSelected.id] [iftttResult_newTag.id]
It comes up with empty field, however when I test the newly created record (with two values in the original list) in Plainview by using [entry.tagsSelected] in the body, I do get all three correct IDs separated by a space, but the form can't render it. So, it can recognise the original values individually with a space, but can't recognise them if another Id is added via the ifttt key-value definition.
Any ideas? Thank you in advance!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oh, there is a "smart field", and a multi-value one...
OK
[entry.tagsSelected.transform(id).asList]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.