# Momentary toggle two tags with one push button

**URL:** <https://forum.inductiveautomation.com/t/momentary-toggle-two-tags-with-one-push-button/34030>\
**Category:** Ignition\
**Created:** [April 18, 2020, 7:59pm UTC](https://forum.inductiveautomation.com/t/momentary-toggle-two-tags-with-one-push-button/34030 "2020-04-18T19:59:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jgraham](https://avatars.discourse-cdn.com/v4/letter/j/6f9a4e/32.png) [@jgraham](https://forum.inductiveautomation.com/u/jgraham)\
**Post date:** [April 18, 2020, 7:59pm UTC](https://forum.inductiveautomation.com/t/momentary-toggle-two-tags-with-one-push-button/34030/1 "2020-04-18T19:59:24Z")

</div>

Is there a simple method to momentarily toggle two tags using a momentary PB (or other control component) or is a script necessary?

---

<div class="post-metadata">

**Author:** ![ankitkarwa21](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@ankitkarwa21](https://forum.inductiveautomation.com/u/ankitkarwa21)\
**Post date:** [April 18, 2020, 11:07pm UTC](https://forum.inductiveautomation.com/t/momentary-toggle-two-tags-with-one-push-button/34030/2 "2020-04-18T23:07:33Z")

</div>

You could create a one-shot scanclass to trigger the tags.

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [April 19, 2020, 2:43am UTC](https://forum.inductiveautomation.com/t/momentary-toggle-two-tags-with-one-push-button/34030/3 "2020-04-19T02:43:04Z")

</div>

scripting might work but is complicated method, instead use a momentary button

---

<div class="post-metadata">

**Author:** ![jgraham](https://avatars.discourse-cdn.com/v4/letter/j/6f9a4e/32.png) [@jgraham](https://forum.inductiveautomation.com/u/jgraham)\
**Post date:** [April 19, 2020, 11:07am UTC](https://forum.inductiveautomation.com/t/momentary-toggle-two-tags-with-one-push-button/34030/4 "2020-04-19T11:07:56Z")

</div>

Thanks all.

I ended up using the writeblocking script and a momentary PB. It seems that after setting the bit via the script, the button (maybe due to its inherent programming properties sets the bit back to the opposite state without having to program a pause and then a toggle back…
