# Conditional viewer logic

**URL:** <https://forum.adalo.com/t/conditional-viewer-logic/48960>\
**Category:** Get Help\
**Created:** [August 6, 2024, 5:48pm UTC](https://forum.adalo.com/t/conditional-viewer-logic/48960 "2024-08-06T17:48:38Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![dblackard](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dblackard](https://forum.adalo.com/u/dblackard)\
**Post date:** [August 6, 2024, 5:48pm UTC](https://forum.adalo.com/t/conditional-viewer-logic/48960/1 "2024-08-06T17:48:39Z")

</div>

Is it possible to have 2 inputs that require both correct answers before the icon will appear?  
Thanks for the help.

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [August 6, 2024, 6:42pm UTC](https://forum.adalo.com/t/conditional-viewer-logic/48960/2 "2024-08-06T18:42:59Z")

</div>

@dblackard, could you explain your issue with some screenshots?

---

<div class="post-metadata">

**Author:** ![dblackard](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dblackard](https://forum.adalo.com/u/dblackard)\
**Post date:** [August 6, 2024, 7:36pm UTC](https://forum.adalo.com/t/conditional-viewer-logic/48960/3 "2024-08-06T19:36:57Z")

</div>

Hope these will help.

 ![IMG_1794](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/3/5/357b824fcb1476f8a73a981e72b489427ca49ff9.jpeg)  
 ![IMG_1795](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/f/9/f9ed313a51977c13b56ca9728c33d509d7cfe675.jpeg)  
 ![IMG_1796](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/8/8/88c810ac1bca3ae46bcb51932acde9802ddf389e.jpeg)

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [August 6, 2024, 7:49pm UTC](https://forum.adalo.com/t/conditional-viewer-logic/48960/4 "2024-08-06T19:49:11Z")

</div>

Thanks! I see… So you have not logged in to the app? This is the first screen you see once you open the app?

---

<div class="post-metadata">

**Author:** ![dblackard](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dblackard](https://forum.adalo.com/u/dblackard)\
**Post date:** [August 6, 2024, 11:16pm UTC](https://forum.adalo.com/t/conditional-viewer-logic/48960/5 "2024-08-06T23:16:42Z")

</div>

Story for the delay. A cyber security buddy called about the app.  
This access is made for people who do not have a log in.  
I added a property to Users to capture the Access Code  
What I want is for the non logged in person to have to enter the access code & full name to get in.  
I tried a different approach but I get the multiple button. Any advice of removing the extras?

 ![IMG_1797](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/d/1/d1e753c95b90007868099e02882c0d09251af73e.jpeg)

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [August 7, 2024, 6:04am UTC](https://forum.adalo.com/t/conditional-viewer-logic/48960/6 "2024-08-07T06:04:18Z")

</div>

Wait… So how does that non logged in users get the access code and name?

---

<div class="post-metadata">

**Author:** ![Victor](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/victor/32/2054_2.png) [@Victor](https://forum.adalo.com/u/Victor)\
**Post date:** [August 7, 2024, 6:10am UTC](https://forum.adalo.com/t/conditional-viewer-logic/48960/7 "2024-08-07T06:10:54Z")

</div>

Hi @dblackard,

Could you please elaborate on the logic a bit more?  
If a user does not have a login, this means there is **no** record for this user in the database. Or such users still have records, but you don’t want to ask them to enter password for some reason?  
A sample usecase may help to propose a solution.

Best,  
Victor.

---

<div class="post-metadata">

**Author:** ![dblackard](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dblackard](https://forum.adalo.com/u/dblackard)\
**Post date:** [August 7, 2024, 6:17am UTC](https://forum.adalo.com/t/conditional-viewer-logic/48960/8 "2024-08-07T06:17:02Z")

</div>

The customer (user) gives it people he wants to share his information with.

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [August 7, 2024, 6:18am UTC](https://forum.adalo.com/t/conditional-viewer-logic/48960/9 "2024-08-07T06:18:26Z")

</div>

So the customer gives he’s/she’s access code and name?

---

<div class="post-metadata">

**Author:** ![dblackard](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dblackard](https://forum.adalo.com/u/dblackard)\
**Post date:** [August 7, 2024, 6:21am UTC](https://forum.adalo.com/t/conditional-viewer-logic/48960/10 "2024-08-07T06:21:17Z")

</div>

Yes. I have it working if I just use the access code.  
I want to make is more secure and require both access code and full name  
My solution works but I get all repeating buttons.

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [August 7, 2024, 6:26am UTC](https://forum.adalo.com/t/conditional-viewer-logic/48960/11 "2024-08-07T06:26:30Z")

</div>

I see…

For the full name input’s (Input) visibility condition you can add the condition as below.  
All users \> count \> is equal to \>1. For the filter add as Access Code from the collection \> is equal to \> Input.

Then for the button add the same but add a one more extra filter which is Full Name from the collection \> is equal to \> Input 2.

Also check for user permissions for full name, who can view section because as I can remember by default it only shows for logged in users or only for the record creator. So you can make the, who can view full name section as Everyone other wise the filter won’t work because it cannot search the records.

> **[Collection Permissions | Adalo Resources](https://help.adalo.com/database/collection-permissions)**
>
> Provide an extra layer of protection for sensitive data such as emails, names, or birthdays by setting up permissions on your collections!

---

<div class="post-metadata">

**Author:** ![dblackard](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dblackard](https://forum.adalo.com/u/dblackard)\
**Post date:** [August 7, 2024, 6:27am UTC](https://forum.adalo.com/t/conditional-viewer-logic/48960/12 "2024-08-07T06:27:45Z")

</div>

Thanks I’ll add this.

---

<div class="post-metadata">

**Author:** ![dblackard](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dblackard](https://forum.adalo.com/u/dblackard)\
**Post date:** [August 7, 2024, 6:44am UTC](https://forum.adalo.com/t/conditional-viewer-logic/48960/13 "2024-08-07T06:44:12Z")

</div>

Update: I decided to abandon the conditional viewer logic and just focus on the 2 question part. Sorry for the extra bother.  
I have the logic working for the button. When I click the top one I see the correct data now.  
The problem remains with the repeating extra buttons.  
I appreciate your patience and help.

 ![IMG_1798](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/4/1/41e97ab74a09e487498ea70f6219604547d08e21.jpeg)  
 ![IMG_1797](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/d/1/d1e753c95b90007868099e02882c0d09251af73e.jpeg)

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [August 7, 2024, 7:26am UTC](https://forum.adalo.com/t/conditional-viewer-logic/48960/14 "2024-08-07T07:26:05Z")

</div>

Are there many records matching with the same access code and full name? You can add 1 for maximum number of records.

If you don’t have many records with same data, does the list of buttons appear after you enter the access code and full name?

---

<div class="post-metadata">

**Author:** ![dblackard](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dblackard](https://forum.adalo.com/u/dblackard)\
**Post date:** [August 7, 2024, 7:54am UTC](https://forum.adalo.com/t/conditional-viewer-logic/48960/15 "2024-08-07T07:54:10Z")

</div>

No. There are no duplicate users  
The repeating buttons are there as soon as you open the page

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [August 7, 2024, 7:57am UTC](https://forum.adalo.com/t/conditional-viewer-logic/48960/16 "2024-08-07T07:57:39Z")

</div>

I guess it’s because the inputs are empty. Add a visibility condition to the list that visible if Input \> is not equal to \> keep the blank field (empty). Then group that list and add another visibility condition to that group which is Input 2 \> is not equal to \> keep the blank field (empty).

Also you can add 1 to maximum number items section in the list.

---

<div class="post-metadata">

**Author:** ![dblackard](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dblackard](https://forum.adalo.com/u/dblackard)\
**Post date:** [August 7, 2024, 8:05am UTC](https://forum.adalo.com/t/conditional-viewer-logic/48960/17 "2024-08-07T08:05:43Z")

</div>

I continue to appreciate your patience and help  
The repeating button problem appears to be gone. 🫰  
Now though, the action on the button (link \> Screen) does not advance.  
The button flashes when I touch it but not action  
Thanks for sticking with me

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [August 7, 2024, 8:18am UTC](https://forum.adalo.com/t/conditional-viewer-logic/48960/18 "2024-08-07T08:18:17Z")

</div>

Where did you added the link action? A screenshot?

---

<div class="post-metadata">

**Author:** ![dblackard](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dblackard](https://forum.adalo.com/u/dblackard)\
**Post date:** [August 7, 2024, 8:29am UTC](https://forum.adalo.com/t/conditional-viewer-logic/48960/19 "2024-08-07T08:29:00Z")

</div>

Down below the custom filters

 ![IMG_1800](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/6/4/6403acbb9b7568d99daf2b21a6fc03661a54c68d.jpeg)

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [August 7, 2024, 8:46am UTC](https://forum.adalo.com/t/conditional-viewer-logic/48960/20 "2024-08-07T08:46:46Z")

</div>

Remove the link action from there and add it to the button instead. Double click on the button to view button settings or you can open button settings by choosing the button in the list, components section.

[Next page](https://forum.adalo.com/t/conditional-viewer-logic/48960.md?page=2)
