# Bug in Container Visibility in a Form

**URL:** <https://community.glideapps.com/t/bug-in-container-visibility-in-a-form/38774>\
**Category:** Ask for Help\
**Created:** [February 21, 2022, 10:09am UTC](https://community.glideapps.com/t/bug-in-container-visibility-in-a-form/38774 "2022-02-21T10:09:19Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Killko](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/killko/32/39538_2.png) [@Killko](https://community.glideapps.com/u/Killko)\
**Post date:** [February 21, 2022, 10:09am UTC](https://community.glideapps.com/t/bug-in-container-visibility-in-a-form/38774/1 "2022-02-21T10:09:19Z")

</div>

I Show the Form Screen for a record. In the Form Screen I organize info to capture as components encapsulated in Containers.

I can set visibility on a any component based on values of my initial Screen, but the same condition doesn’t work for the container…

On a side note, it is very annoying to not be able to set a default value for a Choice component in a Form. It works with all other components (Text Entry, Switch, Date, etc.), why not Choice components

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [February 22, 2022, 12:51am UTC](https://community.glideapps.com/t/bug-in-container-visibility-in-a-form/38774/2 "2022-02-22T00:51:02Z")

</div>

> [@Killko](#):
>
> I can set visibility on a any component based on values of my initial Screen, but the same condition doesn’t work for the container…

Can you attach a video of the bug?

> [@Killko](#):
>
> On a side note, it is very annoying to not be able to set a default value for a Choice component in a Form.

An alternative is to build a custom form where you can use a set value column to populate a default choice, but if you have too many fields then it might become a hassle.

---

<div class="post-metadata">

**Author:** ![Killko](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/killko/32/39538_2.png) [@Killko](https://community.glideapps.com/u/Killko)\
**Post date:** [February 22, 2022, 5:45pm UTC](https://community.glideapps.com/t/bug-in-container-visibility-in-a-form/38774/3 "2022-02-22T17:45:32Z")

</div>

Hi @ThinhDinh here we go, but it’s a bit weirder even… 😅

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [February 23, 2022, 12:22am UTC](https://community.glideapps.com/t/bug-in-container-visibility-in-a-form/38774/4 "2022-02-23T00:22:14Z")

</div>

That looks weird. Is that “Contract type” column you reference a column in the destination sheet or on the screen you were viewing before you access the form?

---

<div class="post-metadata">

**Author:** ![Killko](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/killko/32/39538_2.png) [@Killko](https://community.glideapps.com/u/Killko)\
**Post date:** [February 23, 2022, 12:26am UTC](https://community.glideapps.com/t/bug-in-container-visibility-in-a-form/38774/5 "2022-02-23T00:26:21Z")

</div>

The destination Sheet is the same then the Screen Sheet, so the Form just adds a row. The “Contract Type” column is just on the screen I was viewing before launching the Form.

---

<div class="post-metadata">

**Author:** ![Killko](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/killko/32/39538_2.png) [@Killko](https://community.glideapps.com/u/Killko)\
**Post date:** [February 23, 2022, 12:30am UTC](https://community.glideapps.com/t/bug-in-container-visibility-in-a-form/38774/6 "2022-02-23T00:30:45Z")

</div>

Not sure it’s linked, but I also have problems doing a Set Column Value on Submit of the form.  
Doing a Set Column Value on “this item” crashes silently, as any action I add after that one never happens.

I also tried a Set Column Value on a column in a relation I had on my initial screen. That one doesn’t crash, but it doesn’t change the values either.

So I did a Copy to Clipboard from a column from that same relation as an Action, and it returns the correct value in the Clipboard…

Doing both Set Column values as a direct action from the initial screen works fine.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [February 23, 2022, 12:51am UTC](https://community.glideapps.com/t/bug-in-container-visibility-in-a-form/38774/7 "2022-02-23T00:51:58Z")

</div>

> [@Killko](#):
>
> The “Contract Type” column is just on the screen I was viewing before launching the Form.

So is that value on the first row of the linked table?

Can you set conditional visibility based on a screen column in Glide Pages?

---

<div class="post-metadata">

**Author:** ![Killko](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/killko/32/39538_2.png) [@Killko](https://community.glideapps.com/u/Killko)\
**Post date:** [February 23, 2022, 2:57am UTC](https://community.glideapps.com/t/bug-in-container-visibility-in-a-form/38774/8 "2022-02-23T02:57:34Z")

</div>

Yes, but just not in a Form…
