Edit Screen Visibility Conditions are backwards

First time reporting a bug? Refer to our Start Here post.


Team ID: YG7eRj6IXHudhpUbZH1S

  • In the Glide dashoard URL, e.g.
    https://go.glideapps.com/o/your-team-id-here/

App ID: 49Xp7ZKtmnR5gEDoExl0

  • In the Glide builder URL, e.g.
    https://go.glideapps.com/app/your-app-id-here/layout

Description

  • When I open an Edit screen for a given item (in this case, “Materials”), the visibility conditions seem to be reversed.
    The same condition is set to the delete button, and it functions just fine. It appears to be something specific to the “show edit screen” action.

How to replicate

  • From dashboard… click “Materials”. Then try to edit any of the materials. On the edit screen you will find a hint component that says

    “CONDITION: SHOW WHEN DELETABLE IS CHECKED OR TRUE

    DELETABLE STATE: (insert state here)”

    When state is false, and condition is visible if true, it shows. If i flip the rule, it doesnt show?

    Interestingly enough, if i set a condition on the “Show Edit Screen” action, then open the edit screen for a deletable material, the on screen visibility condition works as advertised.

    Help?

The boolean column/variable has 3 states:

  • empty (at initiation)
  • true (checked)
  • false (unchecked, after that state has gone through true once)

The checked or unchecked boxes in a boolean column do not let you see visually that there are indeed 3 states, since empty and false display the same empty box.

If you edit a boolean column and change it to a text type, you can indeed verify that “empty” and “false” share the same empty box.

this particular boolean is an If then else, with no states leading to null values.

I also have the basic boolean columns in the app default to on, then turned back off via flows when row is written to avoid the null values.

The “Deletable State: False” is pulling the value directly from the if then else column in question, so it is not null.

That also doesnt explain why the exact same column, if used as a condition on the “Show Edit Screen” action, works correctly.

I cant come up with any possible answer besides there is either a bug, or a very weird interaction with the state of computed columns on edit screens. But the output of those computed coloumns (in this case, boolean if then else) appears functional and correct when used in other components on the screen.

ONLY when visibility condition is based on it.

I considered the null value, and tried various combinations of visbility conditions/boolaen true/false/null outputs and its always opposite of what it should be.

I would suggest deleting that picture if that file url has anything sensitive on it

Thanks, and good point. Its not an actual medical form though, just random garbage file.

That being said, it shouldn’t be accessible even if somebody did try to look no?

Hey yeah it will be im pretty sure but i dont fancy typing it all in lol

Why are you checking “Is True” opposed to “Is Checked”? Is the full set of options for that ITE column not fully boolean?

I was wondering if you can check that, and if you don’t want to change the options, check for “true” instead of “True”. Capitalization matters here.

1 Like

Only because it was the last variant I tried.

All possible combinations result in the opposite effect than intended.

I even tried rewriting the if then else altogether and all versions of it give opposite result than intended.

If I copy and paste it to a basic boolean, it works. Left as if then else, opposite. Not null, but actively opposite.

I took a look again with fresh eyes and nope… it really is backwards.

In this first photo, is does NOT show on screen. I wrote the conditions being used in the text so i could show in same photo.

In this second photo, it DOES show on screen.

I feel like im going crazy, but also it is hard to see how this is possibly an error on my end!

Can you send a private message with the link for me to join your team and tell me how to navigate to that screen?

I can reproduce the problem @Ja_ke mentioned. It seems like the calculation in that Edit screen for the relevant If-Then-Else column isn’t passed on correctly to visibility conditions.

I have tagged the support team to take a look.

2 Likes