How to Best Implement Conditional Visibility Based on Multiple User Inputs?

Hello Glide community! :wave:

I am currently working on a project where I need to show or hide certain components based on multiple user inputs. For example, I want to display a form only when a user selects a specific option from a dropdown AND checks a certain box.

I have got the basic conditional visibility working for individual elements, but when it comes to multiple conditions, I’m hitting a bit of a wall. Does anyone have experience with setting up conditional logic that takes into account more than one user input at a time?

I also check this: https://community.glideapps.com/t/set-visibility-of-component-based-on-of-records-in-a-relation-columlooker But I have not found any solution. Could anyone guide me about this? Any tips, workarounds, or resources you could point me to would be greatly appreciated!

Thanks in advance!

Respected community member! :smiling_face_with_three_hearts:

Have you used the AND and OR conditions?

Also can you try making an if then else column and configure it on the data section using all your parameters. So the out put could be SHOW and HIDE (I’m guessing you’re writing the data to the data table as well)

Then on the layout screen you could set the component visibility to show when the column is SHOW

2 Likes

Based on the post, the if-then-else column can look like this:

  • Option selected IS NOT option X then HIDE
  • Boolean IS NOT CHECKED then HIDE
  • Else SHOW
2 Likes