# Button to toggle all switches

**URL:** <https://forum.adalo.com/t/button-to-toggle-all-switches/19512>\
**Category:** Get Help\
**Created:** [November 11, 2021, 1:41am UTC](https://forum.adalo.com/t/button-to-toggle-all-switches/19512 "2021-11-11T01:41:27Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![camer](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@camer](https://forum.adalo.com/u/camer)\
**Post date:** [November 11, 2021, 1:41am UTC](https://forum.adalo.com/t/button-to-toggle-all-switches/19512/1 "2021-11-11T01:41:27Z")

</div>

my app needs all the switches of a list turned to the on position but the list is really long and not what I can expect the user to do. Is there a way that I can make a button to toggle all of the switches all at once?

---

<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:** [November 11, 2021, 6:15pm UTC](https://forum.adalo.com/t/button-to-toggle-all-switches/19512/2 "2021-11-11T18:15:53Z")

</div>

Hi Cameron @camer,

I’ve made a quick video for you, hope it will be useful: [Adalo fundamentals: how to turn on or off all switches at once - YouTube](https://youtu.be/pnmH-NXz5jQ)

Best regards, Victor.

---

<div class="post-metadata">

**Author:** ![camer](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@camer](https://forum.adalo.com/u/camer)\
**Post date:** [November 11, 2021, 9:28pm UTC](https://forum.adalo.com/t/button-to-toggle-all-switches/19512/3 "2021-11-11T21:28:50Z")

</div>

@Victor thank you for the reply, what if each switch is for a different record. is there a way to update all records at once?

---

<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:** [November 14, 2021, 3:06am UTC](https://forum.adalo.com/t/button-to-toggle-all-switches/19512/5 "2021-11-14T03:06:49Z")

</div>

Hi @camer 👋

Just a suggestion.

How about using the Multi Select Dropdown component in Component Marketplace?

It allows you to select all items.

Hope it helps!

Thank you

---

<div class="post-metadata">

**Author:** ![camer](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@camer](https://forum.adalo.com/u/camer)\
**Post date:** [November 14, 2021, 3:07am UTC](https://forum.adalo.com/t/button-to-toggle-all-switches/19512/6 "2021-11-14T03:07:27Z")

</div>

thank you Dilon, that worked!

---

<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:** [November 14, 2021, 3:08am UTC](https://forum.adalo.com/t/button-to-toggle-all-switches/19512/7 "2021-11-14T03:08:08Z")

</div>

Great 👍 and Your Welcome Cameron

---

<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:** [November 15, 2021, 8:34am UTC](https://forum.adalo.com/t/button-to-toggle-all-switches/19512/8 "2021-11-15T08:34:56Z")

</div>

Keep in mind though, that with multiselect dropdown you will **not** be able to **modify** the selections afterwards in an efficient way.  
This component doesn’t allow pre-populating checkboxes, so if your user will try to go and alter their selections - all checkboxes will be deselected.

---

<div class="post-metadata">

**Author:** ![camer](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@camer](https://forum.adalo.com/u/camer)\
**Post date:** [November 15, 2021, 3:15pm UTC](https://forum.adalo.com/t/button-to-toggle-all-switches/19512/9 "2021-11-15T15:15:49Z")

</div>

@Victor Luckily I am just using it for activating notifications so it does work for that simple task! Unfortunately I am running into a problem though. In the previewer it is running great but in the test flight app the multi select drop down isn’t giving me the option to select all.

---

<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:** [November 25, 2021, 3:15pm UTC](https://forum.adalo.com/t/button-to-toggle-all-switches/19512/10 "2021-11-25T15:15:52Z")

</div>

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