# Toggle tag history based on boolean trigger

**URL:** <https://forum.inductiveautomation.com/t/toggle-tag-history-based-on-boolean-trigger/114107>\
**Category:** Ignition\
**Tags:** scripting, ignition81, perspective\
**Created:** [February 21, 2026, 11:55am UTC](https://forum.inductiveautomation.com/t/toggle-tag-history-based-on-boolean-trigger/114107 "2026-02-21T11:55:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![svatsal77](https://avatars.discourse-cdn.com/v4/letter/s/5e9695/32.png) [@svatsal77](https://forum.inductiveautomation.com/u/svatsal77)\
**Post date:** [February 21, 2026, 11:55am UTC](https://forum.inductiveautomation.com/t/toggle-tag-history-based-on-boolean-trigger/114107/1 "2026-02-21T11:55:22Z")

</div>

I am trying to turn on/off tag history based on a boolean tag, but I do not see any option to bind a tag.  
Is it possible? or is there any way around ?  
My goal is to turn on off tag history based on a boolean tag (external trigger)

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [February 21, 2026, 12:01pm UTC](https://forum.inductiveautomation.com/t/toggle-tag-history-based-on-boolean-trigger/114107/2 "2026-02-21T12:01:24Z")

</div>

It’s unbindable, you would need to do this with a script. I don’t recall if the historyEnabled prop on a tag is read only, if not you can just write to it with system.tag.write\*, otherwise you’ll need to write it with system.tag.configure

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 21, 2026, 4:16pm UTC](https://forum.inductiveautomation.com/t/toggle-tag-history-based-on-boolean-trigger/114107/3 "2026-02-21T16:16:35Z")

</div>

> [@svatsal77](#):
>
> turn on off tag history

This is a really bad idea. Whether and how to historize is part of a tag's **configuration** , and changing at run time is expensive and disruptive.

Use triggered transaction groups or scripted database operations for such behavior, not the historian.

---

<div class="post-metadata">

**Author:** ![Matrix\_Engineering](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matrix_engineering/32/19781_2.png) [@Matrix\_Engineering](https://forum.inductiveautomation.com/u/Matrix_Engineering)\
**Post date:** [February 22, 2026, 2:43am UTC](https://forum.inductiveautomation.com/t/toggle-tag-history-based-on-boolean-trigger/114107/4 "2026-02-22T02:43:45Z")

</div>

> [@pturmel](#):
>
> scripted database operations

This. I script DB inserts based on when the machine’s in automatic mode. Why log data when the production ain’t producing.
