You are viewing limited content. For full access, please sign in.

Question

Question

Collections and Exclusive Gateways

asked on June 9, 2021

I am attempting to evaluate a drop down field on a form that is in a collection in an Exclusive Gateway. 

 

What I am trying to achieve: If Drop Down only has value X then TRUE; if Drop Down contains X (and other values) then FALSE.

 

However, when I setup my exclusive gateway with /dataset/Collection/Drop_down="X" 

it treats this statement as CONTAINS. How do I modify this to only evaluate as TRUE when the only value is X and as FALSE when there are multiple different values (That may CONTAIN X?)

 

Regards,

Travis

P.S. I have attached a simple example of what I am trying to achieve. 

1 0

Replies

replied on June 9, 2021

Are you using more than one collection in the submission?  I don't think forms has a "for each" type of task so the variable from the dropdown is actually a "collection" of all of the variables for that field.

0 0
replied on June 9, 2021

There is one collection that has multiple fields. I am only looking at one field. 

 

Its not so much that I need a for each evaluation, just that if the collection only contains one specific Value 'X'. If the Field in that collection contains more two or more different values (even if it contains X) I need it to come back False. 

For Example:

Submission 1
 

Collection
       Drop_Down_Value1: X

Evaluate /dataset/Collection/Drop_Down="X" as TRUE

Submission 2
 

Collection
       Drop_Down_Value1: X
       Drop_Down_Value2: X

Evaluate /dataset/Collection/Drop_Down="X" as TRUE


Submission 3

Collection
         Drop_Down_Value1:A
         Drop_Down_Value2:X

Evaluate /dataset/Collection/Drop_Down="X" as FALSE

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.