# Numeric Entry Field - Accounting Format

**URL:** <https://forum.inductiveautomation.com/t/numeric-entry-field-accounting-format/62625>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [August 3, 2022, 1:13pm UTC](https://forum.inductiveautomation.com/t/numeric-entry-field-accounting-format/62625 "2022-08-03T13:13:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![csilk](https://avatars.discourse-cdn.com/v4/letter/c/9e8a1a/32.png) [@csilk](https://forum.inductiveautomation.com/u/csilk)\
**Post date:** [August 3, 2022, 1:13pm UTC](https://forum.inductiveautomation.com/t/numeric-entry-field-accounting-format/62625/1 "2022-08-03T13:13:07Z")

</div>

I have numerous numeric entry fields in my project, all of which I have their format set to `Accounting $ (0,0.00)`

I am wondering if there is a way to change the “default value” of “$0.00” to nothing

This is how I have them configured:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/0/c07a0b29669efc9058467885686675c9457c972a.png)

If I am in preview mode and I select the numeric entry field, the placeholder then shows “Test”. But until then, the numeric entry field displays “$0.00”. I want this field to not appear anything, unless a user selects it and enters in a value.

---

<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:** [August 3, 2022, 2:08pm UTC](https://forum.inductiveautomation.com/t/numeric-entry-field-accounting-format/62625/2 "2022-08-03T14:08:37Z")

</div>

I played around with it and found that setting `value : null` leaves the field empty. (The placeholder is empty.)  
One problem with this is that the spinner buttons don’t work as there is no initial value. You could have an event - onFocus, perhaps - set the value to 0 if it is null. Then the spinners should work.

---

<div class="post-metadata">

**Author:** ![csilk](https://avatars.discourse-cdn.com/v4/letter/c/9e8a1a/32.png) [@csilk](https://forum.inductiveautomation.com/u/csilk)\
**Post date:** [August 3, 2022, 4:02pm UTC](https://forum.inductiveautomation.com/t/numeric-entry-field-accounting-format/62625/3 "2022-08-03T16:02:32Z")

</div>

Well the problem is, I can set `value : null` and it works.

When I start the preview, the field is empty (placeholder is empty). Then when I enter a value in the field, it shows the value. BUT… If I clear that field, it goes back to showing “$0.00” instead of being empty.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 3, 2022, 4:05pm UTC](https://forum.inductiveautomation.com/t/numeric-entry-field-accounting-format/62625/4 "2022-08-03T16:05:15Z")

</div>

You could add a property change script that detects a value of `""` (empty string) and replaces it with literal null (`None` in Python).

---

<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:** [August 3, 2022, 4:07pm UTC](https://forum.inductiveautomation.com/t/numeric-entry-field-accounting-format/62625/5 "2022-08-03T16:07:00Z")

</div>

… or create an onBlur event and add the script,

```auto
	if not self.props.value:
		self.props.value = None

```

`None` in Python converts to `null` on the component property.
