# \[Resolved\] Automation Command Toggle Feature - Not Working

**URL:** <https://forum.sambapos.com/t/resolved-automation-command-toggle-feature-not-working/4194>\
**Category:** V4 Question\
**Created:** [February 12, 2015, 12:22am UTC](https://forum.sambapos.com/t/resolved-automation-command-toggle-feature-not-working/4194 "2015-02-12T00:22:38Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [February 12, 2015, 12:28am UTC](https://forum.sambapos.com/t/resolved-automation-command-toggle-feature-not-working/4194/4 "2015-02-12T00:28:47Z")

</div>

Remember when you had similar issue involving states and now involving changing ticket type…

> [@\[Solved\] Automation Command toggle Not working](https://forum.sambapos.com/t/solved-automation-command-toggle-not-working/4079/4):
>
> I’m not sure about the reason of that issue but this is not a correct use of automation toggle as it won’t restore latest state. That toggling feature implemented before we’ve implemented ticket states but I’m keeping it for backward compatibility.
> 
> Instead you can create two buttons and display one of them as Gift Receipt state changes. Same as we’ve implemented Gift and Cancel Gift buttons.

You should use two buttons and filter with state.

---

_[View the full topic](https://forum.sambapos.com/t/resolved-automation-command-toggle-feature-not-working/4194)._
