# HMI Web Display Builder Script for Auto or Manual mode selection in HMI (Human Machine Interface) for Push Button

**URL:** <https://forumautomation.com/t/hmi-web-display-builder-script-for-auto-or-manual-mode-selection-in-hmi-human-machine-interface-for-push-button/216>\
**Category:** Honeywell\
**Created:** [December 31, 2014, 5:49pm UTC](https://forumautomation.com/t/hmi-web-display-builder-script-for-auto-or-manual-mode-selection-in-hmi-human-machine-interface-for-push-button/216 "2014-12-31T17:49:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![instrumen](https://forumautomation.com/letter_avatar_proxy/v4/letter/i/65b543/32.png) [@instrumen](https://forumautomation.com/u/instrumen)\
**Post date:** [December 31, 2014, 5:49pm UTC](https://forumautomation.com/t/hmi-web-display-builder-script-for-auto-or-manual-mode-selection-in-hmi-human-machine-interface-for-push-button/216/1 "2014-12-31T17:49:51Z")

</div>

onclick :

IF ME.DataValue(“TAG1.MODE”) = 1 THEN R = MSGBOX("ENTER TO SELECT MAN ",VBOKCANCEL) IF R = VBOK THEN ME.DataValue(“TAG1.MODE”) = 0

END IF

```
ELSEIF ME.DataValue("TAG1.MODE") = 0 THEN
 R = MSGBOX("ENTER TO SELECT AUTO ",VBOKCANCEL)
     IF R = VBOK THEN
         ME.DataValue("TAG1.MODE") = 1

```

END IF
