# Conditional visibility of list item

**URL:** <https://forum.adalo.com/t/conditional-visibility-of-list-item/10351>\
**Category:** Get Help\
**Created:** [March 15, 2021, 4:07pm UTC](https://forum.adalo.com/t/conditional-visibility-of-list-item/10351 "2021-03-15T16:07:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Esteban](https://avatars.discourse-cdn.com/v4/letter/e/f4b2a3/32.png) [@Esteban](https://forum.adalo.com/u/Esteban)\
**Post date:** [March 15, 2021, 4:07pm UTC](https://forum.adalo.com/t/conditional-visibility-of-list-item/10351/1 "2021-03-15T16:07:39Z")

</div>

Hi all,

I’m new to the community and also relatively new to the Adalo platform itself, but I already stumbled upon a problem.

I have a screen with a list of questions. Each question has an icon button which links the user to a screen where they can choose option A, B or C (so, multiple choice).

After submitting the answer (with a button), the user is send to a screen that provides feedback about the answer they gave, the actual right answer and if they gave the right answer or not.

The user then clicks a button that brings them back to the screen with the list of questions.

However, because the user has answered a specific question, the icon button of that question should be inactive or invisible, so that a user cannot update his/her answer. Unfortunately, I could’t find a way to realize this.

I tried to give the icon button a conditional visibility by making it only visible if a user did not answer the question. I’ve added a many-to-many relation between users and questions to be able to add a user to a question as soon as he/she submitted his/her answer. And I set the conditional visibility accordingly (Visible if “current question → users” “does not contain” “logged in user”). However, it doesn’t work.

Can somebody help me?

---

<div class="post-metadata">

**Author:** ![Esteban](https://avatars.discourse-cdn.com/v4/letter/e/f4b2a3/32.png) [@Esteban](https://forum.adalo.com/u/Esteban)\
**Post date:** [March 15, 2021, 9:07pm UTC](https://forum.adalo.com/t/conditional-visibility-of-list-item/10351/2 "2021-03-15T21:07:24Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/9/9c5bbd338a0ec66be3946623228abab7cf533be3.png)

---

<div class="post-metadata">

**Author:** ![Esteban](https://avatars.discourse-cdn.com/v4/letter/e/f4b2a3/32.png) [@Esteban](https://forum.adalo.com/u/Esteban)\
**Post date:** [March 15, 2021, 9:09pm UTC](https://forum.adalo.com/t/conditional-visibility-of-list-item/10351/3 "2021-03-15T21:09:41Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/a/ac44444880b73eb099e008dbc464f12ae6c691c3.png)

---

<div class="post-metadata">

**Author:** ![Esteban](https://avatars.discourse-cdn.com/v4/letter/e/f4b2a3/32.png) [@Esteban](https://forum.adalo.com/u/Esteban)\
**Post date:** [March 15, 2021, 9:10pm UTC](https://forum.adalo.com/t/conditional-visibility-of-list-item/10351/4 "2021-03-15T21:10:58Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/4/48da6cb9c13a9a89a63e1851225fedcc1d321f3c.png)

---

<div class="post-metadata">

**Author:** ![Yongki](https://avatars.discourse-cdn.com/v4/letter/y/7c8e57/32.png) [@Yongki](https://forum.adalo.com/u/Yongki)\
**Post date:** [March 15, 2021, 10:05pm UTC](https://forum.adalo.com/t/conditional-visibility-of-list-item/10351/5 "2021-03-15T22:05:42Z")

</div>

> [@Esteban](#):
>
> However, because the user has answered a specific question, the icon button of that question should be inactive or invisible, so that a user cannot update his/her answer. Unfortunately, I could’t find a way to realize this.

Try using rectangle with huge borders, the color of the borders match color of the icons.

For icon’s action, use conditional if answered than no action.

---

<div class="post-metadata">

**Author:** ![Esteban](https://avatars.discourse-cdn.com/v4/letter/e/f4b2a3/32.png) [@Esteban](https://forum.adalo.com/u/Esteban)\
**Post date:** [March 16, 2021, 8:37am UTC](https://forum.adalo.com/t/conditional-visibility-of-list-item/10351/6 "2021-03-16T08:37:05Z")

</div>

Thank’s a lot for your reply.

Unfortunately, the problem was not so much related to which object I gave a conditional visibility (or a conditional action as you mentioned), but more to the condition itself.

I manage to solve the problem by setting the condition to visible if “Logged in user → User answers → Questions” “does not contain” “Current question”.

So, the problem has been solved.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [March 26, 2021, 8:37am UTC](https://forum.adalo.com/t/conditional-visibility-of-list-item/10351/7 "2021-03-26T08:37:51Z")

</div>

Closed on March 26, 2021, 8:37am UTC

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