# \[SOLVED\] Center numeric entry field in Perspective

**URL:** <https://forum.inductiveautomation.com/t/solved-center-numeric-entry-field-in-perspective/78650>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [September 1, 2023, 3:08am UTC](https://forum.inductiveautomation.com/t/solved-center-numeric-entry-field-in-perspective/78650 "2023-09-01T03:08:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmeyers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmeyers/32/37453_2.png) [@bmeyers](https://forum.inductiveautomation.com/u/bmeyers)\
**Post date:** [September 1, 2023, 3:08am UTC](https://forum.inductiveautomation.com/t/solved-center-numeric-entry-field-in-perspective/78650/1 "2023-09-01T03:08:31Z")

</div>

In Perspective I have a numeric entry field. One of the properties is the align property. My options from the dropdown are right or left. I can put center and it does center the text but I get a red error in the designer. Is this actually a problem for me or can i safely ignore this error?

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

---

<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:** [September 1, 2023, 4:47am UTC](https://forum.inductiveautomation.com/t/solved-center-numeric-entry-field-in-perspective/78650/2 "2023-09-01T04:47:02Z")

</div>

I would consider that as a "non-standard GUI design warning". The only options considered (of all the CSS options available) for a numeric data entry field are left and right. Center-justified will be visually confusing, non-standard and give an amateurish look and feel to the application. Check out professionally designed applications for Windows, Linux, Android, iOS, etc. Don't cause unnecessary dissonance for your users.

---

<div class="post-metadata">

**Author:** ![bmeyers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmeyers/32/37453_2.png) [@bmeyers](https://forum.inductiveautomation.com/u/bmeyers)\
**Post date:** [September 1, 2023, 2:11pm UTC](https://forum.inductiveautomation.com/t/solved-center-numeric-entry-field-in-perspective/78650/3 "2023-09-01T14:11:22Z")

</div>

I don't know if I am convinced that an integer numeric entry field for data collection purposes actually looks better as left or right configured. I am willing to admit that I may not follow best design principles either when it comes to Perspective.

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

If the user needs to enter into the system that the chicken laid 10 eggs this week I think I would still pick the Center option here. The reason I didn't use a text field is I wanted to limit the user input to numbers without extra scripting involved.

---

<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 1, 2023, 2:28pm UTC](https://forum.inductiveautomation.com/t/solved-center-numeric-entry-field-in-perspective/78650/4 "2023-09-01T14:28:20Z")

</div>

"_We_" use right alignment for numerical values is because it makes comparing values easier when you have several of them in a column. It makes things align neatly.  
If you have just one of them, I guess it doesn't matter much in a bubble.  
But if you have users who are used to right aligned numerical values and they stumble upon one that's centered... they might get the feeling there's something weird going on. Is it a numeric entry field ? Why is does it look like that ?

---

<div class="post-metadata">

**Author:** ![bmeyers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmeyers/32/37453_2.png) [@bmeyers](https://forum.inductiveautomation.com/u/bmeyers)\
**Post date:** [September 1, 2023, 2:47pm UTC](https://forum.inductiveautomation.com/t/solved-center-numeric-entry-field-in-perspective/78650/5 "2023-09-01T14:47:28Z")

</div>

I agree with the alignment when there are multiple entry fields.

I just checked what options are available with a windows form and lo and behold...

 ![WindowsForm](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/d/cd0d256053380d3890e4c65fd0a42d17253a8b0e.jpeg)

I guess Microsoft lets you be _visually confusing, non standard, and amateurish_.

---

<div class="post-metadata">

**Author:** ![Felipe\_CRM](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@Felipe\_CRM](https://forum.inductiveautomation.com/u/Felipe_CRM)\
**Post date:** [September 1, 2023, 2:49pm UTC](https://forum.inductiveautomation.com/t/solved-center-numeric-entry-field-in-perspective/78650/6 "2023-09-01T14:49:50Z")

</div>

Funny thing, a search led me to this post from 2 years ago implying that this would be updated in an upcoming version:

> [@Perspective Numeric Entry Field Alignment](https://forum.inductiveautomation.com/t/perspective-numeric-entry-field-alignment/26276/2):
>
> Yes you can; just type in “center” for NumericEntryField.props.align instead of using the dropdown to select the value. This is a setting that isn’t documented because it’s technically not in the list of available options, but we’ll be changing that in an upcoming version. You WILL see a waring in the Property Editor, but you can safely ignore it until we update that property’s configuration.

I guess they haven't gotten around to it though.

---

<div class="post-metadata">

**Author:** ![bmeyers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmeyers/32/37453_2.png) [@bmeyers](https://forum.inductiveautomation.com/u/bmeyers)\
**Post date:** [September 1, 2023, 2:50pm UTC](https://forum.inductiveautomation.com/t/solved-center-numeric-entry-field-in-perspective/78650/7 "2023-09-01T14:50:40Z")

</div>

That is what I needed. Thank you for finding that.

---

<div class="post-metadata">

**Author:** ![tebright1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tebright1/32/87405_2.png) [@tebright1](https://forum.inductiveautomation.com/u/tebright1)\
**Post date:** [February 7, 2024, 6:39pm UTC](https://forum.inductiveautomation.com/t/solved-center-numeric-entry-field-in-perspective/78650/8 "2024-02-07T18:39:01Z")

</div>

Good catch! Needed this.
