# Date and time in header converted to input field?

**URL:** <https://forum.inductiveautomation.com/t/date-and-time-in-header-converted-to-input-field/77088>\
**Category:** Ignition\
**Tags:** ignition81, perspective, scripting\
**Created:** [July 28, 2023, 8:11pm UTC](https://forum.inductiveautomation.com/t/date-and-time-in-header-converted-to-input-field/77088 "2023-07-28T20:11:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ian.sebryk](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ian.sebryk/32/49319_2.png) [@ian.sebryk](https://forum.inductiveautomation.com/u/ian.sebryk)\
**Post date:** [July 28, 2023, 8:11pm UTC](https://forum.inductiveautomation.com/t/date-and-time-in-header-converted-to-input-field/77088/1 "2023-07-28T20:11:47Z")

</div>

i have an expression in a label that just dumps today's date and time. when it renders in the browser, it is converted to an input field and pops up a date selector when clicked on. this is unwanted, unbuilt, and generally not what i built. what's going on here?

 ![Screenshot 2023-07-28 135834](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/e/0ed069032013c2ff76824064556759114ff5a2f6.png)

it is a very straightforward expression setup too:

 ![Screenshot 2023-07-28 135923](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/2/82563fbc5220590d364227d7005103733e89d49a.png)

how the heck do i stop this behaviour!? so very weird and VERY unwanted.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [July 28, 2023, 8:28pm UTC](https://forum.inductiveautomation.com/t/date-and-time-in-header-converted-to-input-field/77088/2 "2023-07-28T20:28:46Z")

</div>

Are you sure there isn't an onClick event on the root or the container that label is in?  
I don't see `page-label` being displayed. Where's that hiding?

Tip: Capitalise your sentences. They're hard to read.

---

<div class="post-metadata">

**Author:** ![ian.sebryk](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ian.sebryk/32/49319_2.png) [@ian.sebryk](https://forum.inductiveautomation.com/u/ian.sebryk)\
**Post date:** [July 28, 2023, 8:42pm UTC](https://forum.inductiveautomation.com/t/date-and-time-in-header-converted-to-input-field/77088/3 "2023-07-28T20:42:09Z")

</div>

`page-label` not relvant; visibilty set to `false`. no `onClick` events anywhere. that's it, that's all.

EDIT: should note, this is being placed in the `header` slot of Page Configuration, if that makes any difference.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [July 28, 2023, 8:50pm UTC](https://forum.inductiveautomation.com/t/date-and-time-in-header-converted-to-input-field/77088/4 "2023-07-28T20:50:30Z")

</div>

Duplicate the component, same binding, see if it still happens.  
Duplicate the view, create a new component, same binding, see if it still happens.

Look at it in the browser dev tools and see what DOM elements are wrapping the label.

---

<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:** [July 30, 2023, 10:38am UTC](https://forum.inductiveautomation.com/t/date-and-time-in-header-converted-to-input-field/77088/5 "2023-07-30T10:38:03Z")

</div>

Have you checked to see what happens if you change the date? Perhaps you've unlocked time travel? Maybe try changing the time first to the night so you can see the change visually. All the best!
