Answered
Hi, I'm having difficulties on developing my app. I need to use Field Condition feature.
There is a first field on loop screen.
I add a second field on other non-loop screen.
I need to make a condition to show the second field based on first field value.
When I try to add a "field condition" to the second field, there is no option where I can select the first field on loop screen.
But if I put the second field screen on a loop, the combo box shows the first field screen to select. But I don't want to transform the second field screen on a loop.
Why does this happen? Could you help us?
0
Comments
Please sign in to leave a comment.
Great question! I am happy to clarify. The reason that a field outside of a loop cannot be conditional based on a field inside of a loop is because a loop screen gives the potential for a the condition to be both met and unmet, multiple times (you can fill a loop out multiple times, so the app would not know which line item in the loop it should reference).
When you set the condition in the opposite direction (a field inside of a loop references a field outside of the loop) if the condition is met, it will simply fulfill the condition each time.
Of course, you can set conditions on items that are inside of the loop off of other items within the same loop screen (which is the most common practice used.
I hope this helps. Let me know if you have any questions!