# Guidance on form template validation/visible components

**URL:** <https://community.glideapps.com/t/guidance-on-form-template-validation-visible-components/60763>\
**Category:** Ask for Help\
**Created:** [April 20, 2023, 2:56pm UTC](https://community.glideapps.com/t/guidance-on-form-template-validation-visible-components/60763 "2023-04-20T14:56:17Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rt\_k](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rt_k/32/52320_2.png) [@Rt\_k](https://community.glideapps.com/u/Rt_k)\
**Post date:** [April 20, 2023, 2:56pm UTC](https://community.glideapps.com/t/guidance-on-form-template-validation-visible-components/60763/1 "2023-04-20T14:56:17Z")

</div>

Hi everyone,

This might be more of a logic block I’m having an issue getting over. Maybe you could help?

So basically you have 5 choices you can make (this is not an actual form but a variation of the multi-step form template). You can select any combination of the first 4 but if you select choice number 5, you cannot choose any of the first 4. Kind of like you can make multiple choices but if you select none of the above, it wouldn’t make sense to select anything above. To try and simplify this to my current skillset, I was just going to do a hint that pops up and says you can’t do that, then also do actual validation when you click “submit” (copy from user defined glide table to google table where completed forms live).

How would you go about accomplishing this? Like I mentioned earlier, I was messing around with visibility of the hint and go it close but unfortunately if you select a rack or multiple, the hint shows, when you select only the “none of the above” option, the hint doesn’t show as intended, or then if you select none of the above and a rack it shows. so it kinda works. just need it to not show when you are selecting racks choices like normal.  
I also tried to setup an if then else formula column and having a brain fart there too. Screen shot of question below

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/d/dd9b138dd896498acfd9fd83fce7f16ad74c27e8.png)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/1/01682e821a4cf858f5577483856b57dc436072b2.png)

Thank you for your time. I tried searching for it but honestly, I don’t even know the correct search terms. I’ve been using “multiple choice”, “forms”, “validation”, etc. I’m sure it could hit me someday, probably on the toilet next week but a helpful push would be really appreciated lol. 😵‍💫

edit: also if someone could explain “includes” vs “is included in” difference like I was 5 years old, that would be awesome. Right now I think they’re the same and the dev post about it looking at first value vs second value respectively threw me for a loop.

---

<div class="post-metadata">

**Author:** ![Lucas\_Malguy1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_malguy1/32/54607_2.png) [@Lucas\_Malguy1](https://community.glideapps.com/u/Lucas_Malguy1)\
**Post date:** [April 20, 2023, 3:06pm UTC](https://community.glideapps.com/t/guidance-on-form-template-validation-visible-components/60763/2 "2023-04-20T15:06:03Z")

</div>

Hi!

Would something like [that](https://drive.google.com/file/d/1WWRdvQHXHi2zx7JXf31njlkhkjsUOWR2/view?usp=share_link) answer your need?

---

<div class="post-metadata">

**Author:** ![Rt\_k](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rt_k/32/52320_2.png) [@Rt\_k](https://community.glideapps.com/u/Rt_k)\
**Post date:** [April 20, 2023, 3:11pm UTC](https://community.glideapps.com/t/guidance-on-form-template-validation-visible-components/60763/3 "2023-04-20T15:11:53Z")

</div>

Oh that’s pretty cool, the None of the above gets hidden when a choice is made.

Now if you were able to make multiple selections and hide the none of the above, that’s more of what I am looking for.

however that makes me think that maybe i need to do - show component if field does not include choices 1, or 2,3,4…errr gotta think about that some more…

---

<div class="post-metadata">

**Author:** ![Lucas\_Malguy1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_malguy1/32/54607_2.png) [@Lucas\_Malguy1](https://community.glideapps.com/u/Lucas_Malguy1)\
**Post date:** [April 20, 2023, 3:11pm UTC](https://community.glideapps.com/t/guidance-on-form-template-validation-visible-components/60763/4 "2023-04-20T15:11:55Z")

</div>

> edit: also if someone could explain “includes” vs “is included in” difference like I was 5 years old, that would be awesome. Right now I think they’re the same and the dev post about it looking at first value vs second value respectively threw me for a loop.

You can think of it as opposed logics.

Includes: IF “123456789” includes “1” THEN “true”.  
Is included in: IF “1” is included in “123456789” then “true”

---

<div class="post-metadata">

**Author:** ![Rt\_k](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rt_k/32/52320_2.png) [@Rt\_k](https://community.glideapps.com/u/Rt_k)\
**Post date:** [April 20, 2023, 3:13pm UTC](https://community.glideapps.com/t/guidance-on-form-template-validation-visible-components/60763/5 "2023-04-20T15:13:59Z")

</div>

> You can think of it as opposed logics.  
> Includes: IF “123456789” includes “1” THEN “true”.  
> Is included in: IF “1” is included in “123456789” then “true”

ohhh this just now clicked for me. thank you.

---

<div class="post-metadata">

**Author:** ![Lucas\_Malguy1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_malguy1/32/54607_2.png) [@Lucas\_Malguy1](https://community.glideapps.com/u/Lucas_Malguy1)\
**Post date:** [April 20, 2023, 3:16pm UTC](https://community.glideapps.com/t/guidance-on-form-template-validation-visible-components/60763/6 "2023-04-20T15:16:10Z")

</div>

> [@Rt\_k](#):
>
> Now if you were able to make multiple selections and hide the none of the above, that’s more of what I am looking for.

Yes that’s doable! I just left it in the demo but you can make the choice “required” and allow “multi selection”.

What I did here, is that I have two choice components:

1. With 5 options, Visible if selection is empty or contains (in your case) “no racks”.
2. Only with the 4 first options (in the filters, only display those who doesn’t contain “no racks”), visible if selection contains “no racks”.

---

<div class="post-metadata">

**Author:** ![Rt\_k](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rt_k/32/52320_2.png) [@Rt\_k](https://community.glideapps.com/u/Rt_k)\
**Post date:** [April 20, 2023, 3:27pm UTC](https://community.glideapps.com/t/guidance-on-form-template-validation-visible-components/60763/7 "2023-04-20T15:27:29Z")

</div>

> Yes that’s doable! I just left it in the demo but you can make the choice “required” and allow “multi selection”.
> 
> What I did here, is that I have two choice components:
> 
> 1. With 5 options, Visible if selection is empty or contains (in your case) “no racks”.
> 2. Only with the 4 first options (in the filters, only display those who doesn’t contain “no racks”), visible if selection contains “no racks”.

oh crap that is genius and what’s even more funny is that I’ve implemented something like that on a different test but forgot about it! I knew someone here would be able get me on the right path. Thank you so much!

---

<div class="post-metadata">

**Author:** ![Lucas\_Malguy1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_malguy1/32/54607_2.png) [@Lucas\_Malguy1](https://community.glideapps.com/u/Lucas_Malguy1)\
**Post date:** [April 20, 2023, 3:28pm UTC](https://community.glideapps.com/t/guidance-on-form-template-validation-visible-components/60763/8 "2023-04-20T15:28:59Z")

</div>

Nice!! Glad that it helped, don’t hesitate if needed, the community is really helpful!

---

<div class="post-metadata">

**Author:** ![Rt\_k](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rt_k/32/52320_2.png) [@Rt\_k](https://community.glideapps.com/u/Rt_k)\
**Post date:** [April 20, 2023, 7:32pm UTC](https://community.glideapps.com/t/guidance-on-form-template-validation-visible-components/60763/9 "2023-04-20T19:32:52Z")

</div>

Just to help anyone else figure this out and building on Lucas\_Malguy1’s help. I ended up having to do three of the same choice component to be able to get it right in my mind. Basically if you select 1-4 or any multiple of that, it makes visible component three to prevent the ability of selecting “no racks”. if you select “no racks” it makes visible component 2 to prevent you from selecting no racks and racks. Component 1 is just an initial view of what can be selected. This works only outside of an actual EDIT FORM or NEW FORM component of Glide Apps. My specific use is within a multipage form TEMPLATE that utilizes visibilities within a details page, so values are immediately saved in a holding user defined table until eventually you would “submit” (copy from temp table to permanent table then clear temp table). Example video below:

[Video here](https://drive.google.com/file/d/19ttRhlVgtRn-SIU5fadaDwYLx0KqdStP/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [April 21, 2023, 7:32pm UTC](https://community.glideapps.com/t/guidance-on-form-template-validation-visible-components/60763/10 "2023-04-21T19:32:59Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
