# Gateway Settings Password Field

**URL:** <https://forum.inductiveautomation.com/t/gateway-settings-password-field/104001>\
**Category:** Module Development\
**Tags:** ignition81\
**Created:** [March 21, 2025, 11:13am UTC](https://forum.inductiveautomation.com/t/gateway-settings-password-field/104001 "2025-03-21T11:13:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Stone](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/david_stone/32/79749_2.png) [@David\_Stone](https://forum.inductiveautomation.com/u/David_Stone)\
**Post date:** [March 21, 2025, 11:13am UTC](https://forum.inductiveautomation.com/t/gateway-settings-password-field/104001/1 "2025-03-21T11:13:36Z")

</div>

I feel like I'm blind here, but what is the correct declaration for a password field in a gateway settings page?  
`public static final EncodedStringField Password = new EncodedStringField(META,"Password");`  
This doesn't make a password type input so the input is in clear text on the page.  
Obviously this is used elsewhere, but I can't see the reference used.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [March 21, 2025, 11:17am UTC](https://forum.inductiveautomation.com/t/gateway-settings-password-field/104001/2 "2025-03-21T11:17:09Z")

</div>

That's the right one, you just also need to set the editor source:

```python
static {
  Password.getFormMeta()
      .setEditorSource(PasswordEditorSource.getSharedInstance());
}

```

---

<div class="post-metadata">

**Author:** ![David\_Stone](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/david_stone/32/79749_2.png) [@David\_Stone](https://forum.inductiveautomation.com/u/David_Stone)\
**Post date:** [March 21, 2025, 11:25am UTC](https://forum.inductiveautomation.com/t/gateway-settings-password-field/104001/3 "2025-03-21T11:25:29Z")

</div>

I definitely didn't think that was going to put in the confirm password change field and the extra checkbox, but I'm not unhappy that it did.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [March 21, 2025, 11:38am UTC](https://forum.inductiveautomation.com/t/gateway-settings-password-field/104001/4 "2025-03-21T11:38:00Z")

</div>

It's a pretty shite piece of UI. You're only supposed to have to confirm a password when you're defining a new password, not when you're entering the password to an external system.

All gone in 8.3 🤷‍♂️

---

<div class="post-metadata">

**Author:** ![David\_Stone](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/david_stone/32/79749_2.png) [@David\_Stone](https://forum.inductiveautomation.com/u/David_Stone)\
**Post date:** [March 21, 2025, 11:50am UTC](https://forum.inductiveautomation.com/t/gateway-settings-password-field/104001/5 "2025-03-21T11:50:41Z")

</div>

Beats modifying text files in dodgy windows directories, so there is that…
