"and" logic for multiple condition in a form
Hello,
I created a form for which I would like to display a field if 2 criteria are met BOTH -> currently a "OR" logic is automatically set:
Where can I change the "or" to "and"?
Thank you
Answers
-
HI @MarleneUKG
In the current Smartsheet form configuration, only nested "OR" conditions are supported. 😅
A potential workaround is to design a separate column in your sheet that fulfills your "OR, OR, AND" criteria. You can then reference this column's value to set up the desired form logic condition.
-
@jmyzk_cloudsmart_jp How would you do this?
I have two questions, call them A and B. If A AND B and both false, then I want to display a third question. But only if BOTH are false.
I can easily add a column in the underlying sheet that has logic that says, if A AND B are false, then ask the third question. I can then add that as a hidden input on the form and key the logic off of that.
The issue is, that logic does not trigger until the row is updated by submitting the form. So the logic in the column is useless until after the form is submitted, which defeats the whole purpose.
-
You are right. My oversight.
Occasionally, we implement a sequence of negative checks as a prerequisite to proceeding with specific inquiries. (see example) This approach only displays subsequent questions if the preceding question satisfies a particular condition. (e.g., if Question 1 is satisfied, then Question 2 is shown; if Question 2 is met, then Question 3 appears, and so forth).
But this approach does not meet the need where you want to show all the questions and allow a user to answer the last question if all previous questions satisfy the condition.
-
Can you give an example of this? i am having a similar issue.
-
Here's a workaround for using a dropdown list and a helper column to achieve "AND" logic in their Smartsheet forms:
- Create the Dropdown Column: First, define a dropdown column in your main sheet with options such as "A", "B", "A & B", depending on the conditions you want to check.
- Add Helper Columns: Next, add helper columns for each condition. For instance, if you have options "A", "B", and "A & B":
- Helper Column for A: This column will have a formula that checks if the dropdown selection is either "A" or "A & B". You can use a formula like =IF(CONTAINS("A", Condition@row), 1).
- Helper Column for B: Similarly, this column will check for "B" or "A & B" using a formula like IF(CONTAINS("B", Condition@row), 1).
- Configure Form Logic:
By using these helper columns, you can control the flow of your form to mimic "AND" logic conditions, even though Smartsheet forms primarily support "OR" conditions by default. Remember to adjust the visibility settings in your form accordingly to reflect the values in these helper columns.
Here is the link to the form.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!