# What is the Toggle button action order?

**URL:** <https://forum.adalo.com/t/what-is-the-toggle-button-action-order/681>\
**Category:** Get Help\
**Created:** [April 11, 2020, 9:00am UTC](https://forum.adalo.com/t/what-is-the-toggle-button-action-order/681 "2020-04-11T09:00:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![eliorb](https://avatars.discourse-cdn.com/v4/letter/e/7993a0/32.png) [@eliorb](https://forum.adalo.com/u/eliorb)\
**Post date:** [April 11, 2020, 9:00am UTC](https://forum.adalo.com/t/what-is-the-toggle-button-action-order/681/1 "2020-04-11T09:00:13Z")

</div>

TL;DR:  
is the extra action added to a toggle button happens before the toggling itself?

I use the toggle button to like and dislike posts (establishing relationship between post to user) which works perfectly fine.  
In addition I have a desired outcome of this like toggle button to add or remove like from the “like counter” property of the post depending on if the its liked or not prior to the “like counter” action.

right now it works fine with disliking but not with liking. is the action added to the toggle happens before the toggling itself?

---

<div class="post-metadata">

**Author:** ![dosandco](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dosandco/32/39_2.png) [@dosandco](https://forum.adalo.com/u/dosandco)\
**Post date:** [April 11, 2020, 9:32am UTC](https://forum.adalo.com/t/what-is-the-toggle-button-action-order/681/2 "2020-04-11T09:32:14Z")

</div>

Hi @eliorb - this is a known issue and there is a feature request to be able to split the toggle/untoggle actions here: [Toggles - Split Actions | Voters | Adalo](https://ideas.adalo.com/feature-requests/p/toggles-split-actions)

If you think it would be helpful, do vote for it!

---

<div class="post-metadata">

**Author:** ![eliorb](https://avatars.discourse-cdn.com/v4/letter/e/7993a0/32.png) [@eliorb](https://forum.adalo.com/u/eliorb)\
**Post date:** [April 11, 2020, 10:03am UTC](https://forum.adalo.com/t/what-is-the-toggle-button-action-order/681/3 "2020-04-11T10:03:11Z")

</div>

Thank you for the reply! Indeed it is the same issue you we’re pointing on and I up voted.

In the meantime, did you find another solution? the only solution I found so far is just placing to to separated elements and to hide each on its turn, which is kinda shit cause then I have to deal with a lot of misplacing the platform makes.

---

<div class="post-metadata">

**Author:** ![dosandco](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dosandco/32/39_2.png) [@dosandco](https://forum.adalo.com/u/dosandco)\
**Post date:** [April 11, 2020, 11:25am UTC](https://forum.adalo.com/t/what-is-the-toggle-button-action-order/681/4 "2020-04-11T11:25:06Z")

</div>

The only workaround I have is to use image-style icons and group them together with conditional formatting, eg - an empty checkbox and a checked one, and to do it that way
