# Numeric Entry Field events

**URL:** <https://forum.inductiveautomation.com/t/numeric-entry-field-events/78992>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [September 12, 2023, 6:21am UTC](https://forum.inductiveautomation.com/t/numeric-entry-field-events/78992 "2023-09-12T06:21:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tupanaster](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@tupanaster](https://forum.inductiveautomation.com/u/tupanaster)\
**Post date:** [September 12, 2023, 6:21am UTC](https://forum.inductiveautomation.com/t/numeric-entry-field-events/78992/1 "2023-09-12T06:21:49Z")

</div>

Hi everyone,

When trying to trigger an event from a **disabled** Numeric Entry Field on a web browser, it fails to trigger. It does trigger in the designer.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/d/2d8e45f6f0741485490d6b2b4cfd944abc323d85.png)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/c/3c03a125a9e3011be996b8619a6cca8c704c3559.png)

> **Components Flex View**
>
> ```auto
> [
> {
> "type": "ia.input.numeric-entry-field",
> "version": 0,
> "props": {
> "spinner": {
> "enabled": false
> },
> "enabled": false
> },
> "meta": {
> "name": "NumericEntryField"
> },
> "position": {
> "basis": "195px"
> },
> "custom": {},
> "events": {
> "dom": {
> "onClick": {
> "type": "script",
> "scope": "G",
> "config": {
> "script": "\tself.getSibling(\"Label\").props.text = 'Purple Disco Machine'"
> }
> }
> }
> }
> },
> {
> "type": "ia.display.label",
> "version": 0,
> "props": {
> "text": "..."
> },
> "meta": {
> "name": "Label"
> },
> "position": {
> "basis": "161px"
> },
> "custom": {}
> }
> ]
> 
> ```

My goal is to open a popup from a Numeric Entry Field even if it's disabled. Wrapping it in a Flex Container to trigger an event from there doesn't seem to work either.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [September 12, 2023, 7:26am UTC](https://forum.inductiveautomation.com/t/numeric-entry-field-events/78992/2 "2023-09-12T07:26:23Z")

</div>

Is it always disabled, or is that dynamic ?  
If it's always disabled, you can add `pointer-events: none` to allow clicks to go "through" the component and catch those clicks from something else.

There might be another way, which I'll try right now and report back

edit: well, if you disable it and set the `pointer-events: none` on it... the `onClick` event triggers.  
That's not what I expected, but, hey... You may not want to rely on that though, feels like unintended behavior.

---

<div class="post-metadata">

**Author:** ![tupanaster](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@tupanaster](https://forum.inductiveautomation.com/u/tupanaster)\
**Post date:** [September 12, 2023, 7:53am UTC](https://forum.inductiveautomation.com/t/numeric-entry-field-events/78992/3 "2023-09-12T07:53:29Z")

</div>

In this case it will always be disabled. In other cases it will be dynamic.

> [@pascal.fragnoud](#):
>
> to allow clicks to go "through" the component and catch those clicks from something else

Some time ago I experienced "click throughs" in coordinate containers when the root had an event associated to it. So in this case, using a flex container, I started by adding the behavior to the root. Since I couldn't get it to work then I added it straight in the component but it didn't work either.

> [@pascal.fragnoud](#):
>
> `pointer-events: none`

Pointer events are new to me. I'll check it out.

Edit 1:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/5/050c01aedc95da5037261d6cfd7eca8b9ad21329.png)

It worked like that. I can even open a popup with it.

Setting the css property `pointer-events: none` also worked as you suggested.
