# Field formatting not happening after Enter is pressed

**URL:** <https://forum.servoy.com/t/field-formatting-not-happening-after-enter-is-pressed/20474>\
**Category:** Questions\
**Created:** [April 15, 2021, 12:51am UTC](https://forum.servoy.com/t/field-formatting-not-happening-after-enter-is-pressed/20474 "2021-04-15T00:51:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![roddy](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@roddy](https://forum.servoy.com/u/roddy)\
**Post date:** [April 15, 2021, 12:51am UTC](https://forum.servoy.com/t/field-formatting-not-happening-after-enter-is-pressed/20474/1 "2021-04-15T00:51:12Z")

</div>

If I am entering data into a field and move away, the field is formatted accordingly; however, it I press Enter then move away, the field formatting does not happen. Is there a way to resolve this?

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [April 15, 2021, 7:03am UTC](https://forum.servoy.com/t/field-formatting-not-happening-after-enter-is-pressed/20474/2 "2021-04-15T07:03:58Z")

</div>

which client are we talking about here? and if it is ngclient which component exactly?

---

<div class="post-metadata">

**Author:** ![roddy](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@roddy](https://forum.servoy.com/u/roddy)\
**Post date:** [April 15, 2021, 10:59pm UTC](https://forum.servoy.com/t/field-formatting-not-happening-after-enter-is-pressed/20474/3 "2021-04-15T22:59:47Z")

</div>

[attachment=0]Screen Shot 2021-04-16 at 8.58.06 am.png[/attachment]Am using NG Client, it is a CSS Position Layout for and the component is just marked as a Field with a display type of TEXT\_FIELD.

 ![Screen Shot 2021-04-16 at 8.58.06 am.png](https://canada1.discourse-cdn.com/flex010/uploads/servoy/original/2X/1/1f754f2b223df60852215c29ca0969edc2647c35.png)

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [April 16, 2021, 11:26am UTC](https://forum.servoy.com/t/field-formatting-not-happening-after-enter-is-pressed/20474/4 "2021-04-16T11:26:12Z")

</div>

this is i think because the onchange event doesn’t happen when the focus left the field  
i see in NGClient2 this works fine, but yes in NG1 this doesn’t fully work. You can create a case.

---

<div class="post-metadata">

**Author:** ![roddy](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@roddy](https://forum.servoy.com/u/roddy)\
**Post date:** [April 19, 2021, 7:16am UTC](https://forum.servoy.com/t/field-formatting-not-happening-after-enter-is-pressed/20474/5 "2021-04-19T07:16:06Z")

</div>

Will do, thanks.
