# Password Field Enter Key

**URL:** <https://forum.inductiveautomation.com/t/password-field-enter-key/29536>\
**Category:** Ignition Early Access\
**Created:** [October 30, 2019, 6:54pm UTC](https://forum.inductiveautomation.com/t/password-field-enter-key/29536 "2019-10-30T18:54:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jramirez3](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@jramirez3](https://forum.inductiveautomation.com/u/jramirez3)\
**Post date:** [October 30, 2019, 6:54pm UTC](https://forum.inductiveautomation.com/t/password-field-enter-key/29536/1 "2019-10-30T18:54:20Z")

</div>

In perspective there is a password field component and i can’t find a way to get a script to run when the enter key is pressed when entering text into this component.

Is there a way to make this work?

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [October 30, 2019, 7:01pm UTC](https://forum.inductiveautomation.com/t/password-field-enter-key/29536/2 "2019-10-30T19:01:22Z")

</div>

There is indeed a Password Field Component, and it’s located in the Input Palette.  
 ![41%20AM](https://us1.discourse-cdn.com/inductiveautomation/original/2X/e/e4368bfc7ed148be881c629a91536d5d620a7965.png)

There is also a way to perform some logic when the Enter key is pressed:

 ![19%20AM](https://us1.discourse-cdn.com/inductiveautomation/original/2X/4/4b6bf109b8811a2475668dc9163377832149e441.png)

To access this dialog, you should right-click the Text Field or Password Field you are working with and then select “Configure Events”.

---

<div class="post-metadata">

**Author:** ![jramirez3](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@jramirez3](https://forum.inductiveautomation.com/u/jramirez3)\
**Post date:** [October 30, 2019, 7:50pm UTC](https://forum.inductiveautomation.com/t/password-field-enter-key/29536/3 "2019-10-30T19:50:28Z")

</div>

Perfect. that works well.

Thank you.

---

<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:** [May 27, 2022, 1:07am UTC](https://forum.inductiveautomation.com/t/password-field-enter-key/29536/4 "2022-05-27T01:07:33Z")

</div>

Not working for me in version 8.1.16

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [May 27, 2022, 1:26am UTC](https://forum.inductiveautomation.com/t/password-field-enter-key/29536/5 "2022-05-27T01:26:14Z")

</div>

Try:

```auto
if event.key == '\n':
	#do something

```

---

<div class="post-metadata">

**Author:** ![nicholas.robinson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nicholas.robinson/32/22188_2.png) [@nicholas.robinson](https://forum.inductiveautomation.com/u/nicholas.robinson)\
**Post date:** [May 12, 2023, 2:23pm UTC](https://forum.inductiveautomation.com/t/password-field-enter-key/29536/6 "2023-05-12T14:23:59Z")

</div>

@josborn thanks for this post "\n" work perfect for the enter key. For anyone else if it can be helpful, here is what the entire contents of "event" looks like:

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

Cheers,

Nick
