# Basic(?): AND condition workaround

**URL:** <https://forum.adalo.com/t/basic-and-condition-workaround/39709>\
**Category:** Get Help\
**Created:** [June 12, 2023, 2:25pm UTC](https://forum.adalo.com/t/basic-and-condition-workaround/39709 "2023-06-12T14:25:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vered](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/vered/32/30195_2.png) [@Vered](https://forum.adalo.com/u/Vered)\
**Post date:** [June 12, 2023, 2:25pm UTC](https://forum.adalo.com/t/basic-and-condition-workaround/39709/1 "2023-06-12T14:25:58Z")

</div>

Hello experts,  
I need an AND logic for “Sometimes Visible” to be based on two conditions.  
e.g. if a fieldX value in current record is 5 and fieldY value is True.

I’m new to Adalo and couldn’t find the solution yet.  
Your help is MUCH appreciated !

Thanks,  
Vered

---

<div class="post-metadata">

**Author:** ![EchoTheOracle](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/echotheoracle/32/28295_2.png) [@EchoTheOracle](https://forum.adalo.com/u/EchoTheOracle)\
**Post date:** [June 14, 2023, 3:05pm UTC](https://forum.adalo.com/t/basic-and-condition-workaround/39709/2 "2023-06-14T15:05:26Z")

</div>

As I understand it (and someone can correct me if I’m wrong), this isn’t something that can be done in Adalo.

You could put a component into a group, set the group’s visibility based on one condition, and then set the component visibility based on another - but I don’t personally know if that’s good practice.

Hopefully someone with more experience can say whether doing the above would cause extra app lag or other issues.

---

<div class="post-metadata">

**Author:** ![Vered](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/vered/32/30195_2.png) [@Vered](https://forum.adalo.com/u/Vered)\
**Post date:** [June 14, 2023, 7:39pm UTC](https://forum.adalo.com/t/basic-and-condition-workaround/39709/3 "2023-06-14T19:39:02Z")

</div>

Thanks a lot @EchoTheOracle.

Community leaders? experts?

Thanks a lot  
Vered

---

<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:** [June 15, 2023, 7:45am UTC](https://forum.adalo.com/t/basic-and-condition-workaround/39709/4 "2023-06-15T07:45:03Z")

</div>

Hey @Vered,

@EchoTheOracle is completely right - you can do it using groups.  
On the element itself you put a 2nd conditional visibility (fieldY value is True) and then you make a group out of this element and put a 1st conditional visibility on it (fieldX value is 5).

This should not cause a lot of extra workload on the app. Anyway this is the only workaround 🙂

Best,  
Victor.

---

<div class="post-metadata">

**Author:** ![Vered](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/vered/32/30195_2.png) [@Vered](https://forum.adalo.com/u/Vered)\
**Post date:** [June 15, 2023, 11:21am UTC](https://forum.adalo.com/t/basic-and-condition-workaround/39709/5 "2023-06-15T11:21:08Z")

</div>

Thank you so much @Victor and @EchoTheOracle !!

---

<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:** [June 25, 2023, 11:21am UTC](https://forum.adalo.com/t/basic-and-condition-workaround/39709/6 "2023-06-25T11:21:34Z")

</div>

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