Forums

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

Confiforms - How to pass content from one multifield to another

Sopaboba October 21, 2021

Hi again

I am trying to finish my most complicated project and that is why I am asking to often lately.

Problem: I have two different smart multiselect fields. Let's call then mymultiselect1 and mymultiselect2. The record can be update by different people, selecting options from mymultiselect1 field.

I want the options selected by each person passes from mymultiselect1 to mymultiselect2, keeping the options already in that mymultiselect2. Let me explain myself better.

mymultiselect1: options: A, B, C, D, E, F

mymultiselect2: options: A, B, C, D, E, F

User number one chooses option A and automatically the value passes to mymultiselect2, which now has the value A.

User number two chooses option B and automatically the value passes to mymultiselect2, cointaining value A, and now passes to A, B

And so no. Every user sees only a few options from mymultiselect1, depending on the team they work to. The reason why I am doing this is because I want the form state passes to complete if and only if mymultiselect2 cointains all the options available.

I have tried the following approach. Rules for field definition that changes mymultiselect2 adding the content of mymultiselect1, with this sintaxis: mymultiselect2=[entry.mymultiselect2],[entry.mymultiselect1], but doesn't work.

What am I doing wrong? Should I try it via IFTTT instead?

Thanks again, experts

1 answer

1 accepted

1 vote
Answer accepted
Alex Medved _ConfiForms_
Community Champion
October 21, 2021

Multi-value fields expect comma separated values as input

So, you should probably use asList functions to transform values into CSVs

mymultiselect2=[entry.mymultiselect2.asList],[entry.mymultiselect1.asList]

Alex

Sopaboba October 21, 2021

I will try tomorrow and let you know. It seems as simple as adding .asList to my approach. Thanks, Alex

Sopaboba October 23, 2021

I have tried it and it's perfectly working. I only had to do a little adjustment this way:

Equipo=[entry.Persona1.transform(Equipo).asList],[entry.Persona2.transform(Equipo).asList]

Where Persona1 and Persona2 are two different smart checkboxes group (with the property Equipo in them) and Equipo is the checkbox group that I wanted to autocheck with the content of the other two.

Thanks as always.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events