# Certain text entries showing when view conditions are not met, and vice versa

**URL:** https://community.glideapps.com/t/certain-text-entries-showing-when-view-conditions-are-not-met-and-vice-versa/69822
**Category:** Report a Bug
**Created:** [January 21, 2024, 4:44pm UTC](https://community.glideapps.com/t/certain-text-entries-showing-when-view-conditions-are-not-met-and-vice-versa/69822 "2024-01-21T16:44:33Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Sulture](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sulture/32/62356_2.png) [@Sulture](https://community.glideapps.com/u/Sulture)
#### Post date: [January 21, 2024, 4:44pm UTC](https://community.glideapps.com/t/certain-text-entries-showing-when-view-conditions-are-not-met-and-vice-versa/69822/1 "2024-01-21T16:44:33Z")

</div>

**Describe the bug:**

- Some items with a view condition to show itself when a column equals a certain value are doing the opposite (i.e., showing when condition is not met, and not showing when condition is met).
- However, there are other items with nearly identical view conditions that do or don’t show as intended.
- I’ll show a demo below:

 ![vac-dashboard](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/8/d856556304c63aa4fc9a08d23524f60b02d5ba36.jpeg)

In my app we have a recruiters table and a vacancies table, where each recruiter can be linked to multiple vacancies (via a column relation). Shown above is a dashboard page connected to the recruiters table, and the filters for this page are shown below (basically it should read data for the recruiter viewing it).

 ![vac-dashboard-conditions](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/a/da9cbcf82efe3ae563be464c60029c541ffca868.png)

Below is a list that shows the viewing recruiter’s vacancies, along with its conditions:

 ![vac-dashboard-rel-list](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/3/0385a3f5f4ae17c6b0df55ff25b4a9da34a293dc.jpeg)  
 ![vac-dashboard-rel-list-conditiions](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/2/c292adad0f0a0a035e3decfccc2c8c5c4327034c.png)

If I were to open the detail screen for the 1st one, and then open its edit screen, we have this:

 ![vacancy-text-showing](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/b/cb2b502fdfc4e7c3b325876165ee223e81a8f0d4.jpeg)  
 ![vacancy-text-conditions](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/3/f3b3645333ccc4a5fa3c8343e72796fe0c87d6a5.png)

The selected text is showing on screen. However, if we look in the back-end, for this vacancy, this column’s value is set to 1, even though this text is still being displayed. However, the text would hide if this column’s value were 1, giving the opposite of the intended behavior.

The back-end data from the recruiters table (for the viewing recruiter) is shown below:

 ![rec-table-vacancies](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/c/dc388e91280b99262ff24d86d5fa8e6a08dae83a.png)  
 ![rec-table-vacancies-listed](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/9/59d9470a0e9f3dabc50e0bdf38b685ed17faf2bf.jpeg)  
![rec-table-vacancies-listed-column|682x500](upload://o72FThNBlvAZPooOqT31jGtwFOd.p

As you can see the text is being shown when it shouldn’t, and vice versa also happens.

A similar situation takes place with the users table (for the candidates user type), but there the text entries do (not) show as intended by their view conditions. I suspect maybe Glide is not handling the relation data properly? Who knows.

**Expected behavior:**

- The items affected should show when their conditions hold.

Feel free to reach out to me of any questions regarding this, so we can solve this bug together!

---

<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: [January 22, 2024, 12:03am UTC](https://community.glideapps.com/t/certain-text-entries-showing-when-view-conditions-are-not-met-and-vice-versa/69822/2 "2024-01-22T00:03:51Z")

</div>

So the Recruiters table is not your User profiles table?

---

<div class="post-metadata">

### Author: ![Sulture](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sulture/32/62356_2.png) [@Sulture](https://community.glideapps.com/u/Sulture)
#### Post date: [January 22, 2024, 7:07am UTC](https://community.glideapps.com/t/certain-text-entries-showing-when-view-conditions-are-not-met-and-vice-versa/69822/3 "2024-01-22T07:07:37Z")

</div>

Correct.

In this app we have 2 different user types, namely Recruiters & Candidates. Each have their own dedicated tables to store data uniquely for them, but common user data is stored on the user profile table.

---

<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: [January 22, 2024, 1:44pm UTC](https://community.glideapps.com/t/certain-text-entries-showing-when-view-conditions-are-not-met-and-vice-versa/69822/4 "2024-01-22T13:44:06Z")

</div>

Something seems off to me if it’s behaving the opposite way. When you’re on the edit screen or the details screen of “Data Scientist Inc 1”, can you click the “Data” tag on the bottom left and tell me if the data belongs to that row?

---

<div class="post-metadata">

### Author: ![Sulture](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sulture/32/62356_2.png) [@Sulture](https://community.glideapps.com/u/Sulture)
#### Post date: [January 22, 2024, 2:27pm UTC](https://community.glideapps.com/t/certain-text-entries-showing-when-view-conditions-are-not-met-and-vice-versa/69822/5 "2024-01-22T14:27:48Z")

</div>

Yes, see below:

 ![vacancy-edit-screen-data-title](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/e/7e9b1341c6aecc8c0162ae74f3c6e651d84fcb76.jpeg)  
 ![vacancy-edit-screen-data-text](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/f/afe84e132711a76b4387c7668cf56c0d82bb6b8a.jpeg)  
 ![vacancy-edit-screen-data-text-2](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/9/e9a09a55d5a81649208ac554499dd55ec30ccbb4.jpeg)

As you can see the text is showing when it shouldn’t (and vice versa).

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [January 22, 2024, 2:32pm UTC](https://community.glideapps.com/t/certain-text-entries-showing-when-view-conditions-are-not-met-and-vice-versa/69822/6 "2024-01-22T14:32:17Z")

</div>

Can you show us how that if-then-else column is configured?

I’m wondering if it’s returning a string 1 instead of a number 1.

You might be better off configuring that to either return true or empty, then your visibility condition can test for checked/is not checked.

---

<div class="post-metadata">

### Author: ![Sulture](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sulture/32/62356_2.png) [@Sulture](https://community.glideapps.com/u/Sulture)
#### Post date: [January 22, 2024, 2:40pm UTC](https://community.glideapps.com/t/certain-text-entries-showing-when-view-conditions-are-not-met-and-vice-versa/69822/7 "2024-01-22T14:40:38Z")

</div>

Sure, see below:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/9/190454411e0d4f17dae7bae59ede3c69d0d5c0be.png)

Also, if I check if the column is empty or not, it also gives the opposite behavior:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/8/a8a4ae14bee35d5d09698ca6e8c37bb56bc019cd.jpeg)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/c/1cb0256643ce15420c058568183aebb294a43674.jpeg)

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [January 22, 2024, 3:25pm UTC](https://community.glideapps.com/t/certain-text-entries-showing-when-view-conditions-are-not-met-and-vice-versa/69822/8 "2024-01-22T15:25:00Z")

</div>

Unless I’m missing something, I can’t see any reason why that wouldn’t be working as you have it.

However, try my suggestion: change it so that it returns `true` (this will make it a boolean), and then use “is checked/is not checked” in your visibility conditions.

See if that makes any difference.

---

<div class="post-metadata">

### Author: ![Sulture](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sulture/32/62356_2.png) [@Sulture](https://community.glideapps.com/u/Sulture)
#### Post date: [January 23, 2024, 6:22am UTC](https://community.glideapps.com/t/certain-text-entries-showing-when-view-conditions-are-not-met-and-vice-versa/69822/9 "2024-01-23T06:22:22Z")

</div>

Sure, I just made a new column as you said with true/false values and now am reading from it instead.

Here is the result, still a similar issue:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/e/3e27498de4e3e62e61d2012ca12ec0c81914b295.jpeg)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/2/12036a85992936d54bc5204e25c84fa60032603d.jpeg)

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [January 23, 2024, 6:31am UTC](https://community.glideapps.com/t/certain-text-entries-showing-when-view-conditions-are-not-met-and-vice-versa/69822/10 "2024-01-23T06:31:16Z")

</div>

Question: is that value already set before you open the edit form?

I just did a test, and it works for me as expected. However, if the value changes whilst the form is open, the change is not reflected.

---

<div class="post-metadata">

### Author: ![Sulture](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sulture/32/62356_2.png) [@Sulture](https://community.glideapps.com/u/Sulture)
#### Post date: [January 23, 2024, 4:45pm UTC](https://community.glideapps.com/t/certain-text-entries-showing-when-view-conditions-are-not-met-and-vice-versa/69822/11 "2024-01-23T16:45:50Z")

</div>

Yes, that value is already set before opening either this vacancy’s detail or edit screen/form, and still is set when opened.

In case you missed it though, when you tested it, I had it set to show when the column IS checked (was supposed to be set to the opposite).

---

<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: [July 21, 2024, 4:46pm UTC](https://community.glideapps.com/t/certain-text-entries-showing-when-view-conditions-are-not-met-and-vice-versa/69822/12 "2024-07-21T16:46:33Z")

</div>

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