# \[BUG-5618\] Perspective format transform with numeric pattern, text being capitalized by default

**URL:** <https://forum.inductiveautomation.com/t/bug-5618-perspective-format-transform-with-numeric-pattern-text-being-capitalized-by-default/56433>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [February 23, 2022, 4:45am UTC](https://forum.inductiveautomation.com/t/bug-5618-perspective-format-transform-with-numeric-pattern-text-being-capitalized-by-default/56433 "2022-02-23T04:45:10Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![yin.cheng](https://avatars.discourse-cdn.com/v4/letter/y/85f322/32.png) [@yin.cheng](https://forum.inductiveautomation.com/u/yin.cheng)\
**Post date:** [February 23, 2022, 4:45am UTC](https://forum.inductiveautomation.com/t/bug-5618-perspective-format-transform-with-numeric-pattern-text-being-capitalized-by-default/56433/1 "2022-02-23T04:45:10Z")

</div>

Hi All

Im trying to use a simple format transform to add a “MPa” unit to my value.  
But i realized for text used in the format pattern, they are capitalized by default, and “MPA” was displayed instead.  
Is there any way to “un-capitalize” it?  
Or any better way to add a unit to a value for label component?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/2/92c7b500c59cf52ded389861812ac8d44680aafc.png)

---

<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:** [February 23, 2022, 5:30am UTC](https://forum.inductiveautomation.com/t/bug-5618-perspective-format-transform-with-numeric-pattern-text-being-capitalized-by-default/56433/2 "2022-02-23T05:30:22Z")

</div>

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

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/8/2815dfa99df77ee31c4bb6be3f9b64a402c1b261.png)

---

<div class="post-metadata">

**Author:** ![yin.cheng](https://avatars.discourse-cdn.com/v4/letter/y/85f322/32.png) [@yin.cheng](https://forum.inductiveautomation.com/u/yin.cheng)\
**Post date:** [February 23, 2022, 6:18am UTC](https://forum.inductiveautomation.com/t/bug-5618-perspective-format-transform-with-numeric-pattern-text-being-capitalized-by-default/56433/3 "2022-02-23T06:18:10Z")

</div>

Hey jespinmartin1, thank you for the reply.

So i guess it is meant for “patterns” only.  
Because i saw in the inductive university video they have used a prefix as an example, so i was thinking it is applicable for suffix, units etc as well.

But still… How i wish there is a way to remove the default capitalization…

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

---

<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:** [February 23, 2022, 2:13pm UTC](https://forum.inductiveautomation.com/t/bug-5618-perspective-format-transform-with-numeric-pattern-text-being-capitalized-by-default/56433/4 "2022-02-23T14:13:48Z")

</div>

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

---

<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:** [February 23, 2022, 3:48pm UTC](https://forum.inductiveautomation.com/t/bug-5618-perspective-format-transform-with-numeric-pattern-text-being-capitalized-by-default/56433/5 "2022-02-23T15:48:15Z")

</div>

You could try wrapping the prefix/suffix in the pattern with `'` literals:  
[https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/text/DecimalFormat.html](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/text/DecimalFormat.html)

---

<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:** [February 24, 2022, 2:58am UTC](https://forum.inductiveautomation.com/t/bug-5618-perspective-format-transform-with-numeric-pattern-text-being-capitalized-by-default/56433/6 "2022-02-24T02:58:28Z")

</div>

Clever

---

<div class="post-metadata">

**Author:** ![yin.cheng](https://avatars.discourse-cdn.com/v4/letter/y/85f322/32.png) [@yin.cheng](https://forum.inductiveautomation.com/u/yin.cheng)\
**Post date:** [February 24, 2022, 10:53am UTC](https://forum.inductiveautomation.com/t/bug-5618-perspective-format-transform-with-numeric-pattern-text-being-capitalized-by-default/56433/7 "2022-02-24T10:53:03Z")

</div>

Hi Paul, have tried with ‘test’, but still displayed as TEST  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/a/fa5a92675d8dc223eac3382258de2e6f5de6a15e.png)

---

<div class="post-metadata">

**Author:** ![yin.cheng](https://avatars.discourse-cdn.com/v4/letter/y/85f322/32.png) [@yin.cheng](https://forum.inductiveautomation.com/u/yin.cheng)\
**Post date:** [February 24, 2022, 10:55am UTC](https://forum.inductiveautomation.com/t/bug-5618-perspective-format-transform-with-numeric-pattern-text-being-capitalized-by-default/56433/8 "2022-02-24T10:55:46Z")

</div>

Hi jespinmartin1, thank you for showing the example with 2 transforms.  
Was hoping to do it in 1 transform only, but i guess 2 transforms is the method to do so…

---

<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:** [February 24, 2022, 6:29pm UTC](https://forum.inductiveautomation.com/t/bug-5618-perspective-format-transform-with-numeric-pattern-text-being-capitalized-by-default/56433/9 "2022-02-24T18:29:16Z")

</div>

Following @paul-griffith advice, you can do it in a single transform.

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

---

<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:** [February 24, 2022, 6:59pm UTC](https://forum.inductiveautomation.com/t/bug-5618-perspective-format-transform-with-numeric-pattern-text-being-capitalized-by-default/56433/10 "2022-02-24T18:59:04Z")

</div>

Just looked into it, and the uppercasing is deliberate (we’re specifically doing it in our code) but I can’t really figure out _why_. That would be the ideal way to do this (creating a formatter is somewhat expensive), but should be fine.

---

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [February 24, 2022, 7:54pm UTC](https://forum.inductiveautomation.com/t/bug-5618-perspective-format-transform-with-numeric-pattern-text-being-capitalized-by-default/56433/11 "2022-02-24T19:54:26Z")

</div>

> [@paul-griffith](#):
>
> the uppercasing is deliberate (we’re specifically doing it in our code) but I can’t really figure out _why_ .

To make it match an 80's HMI? 😁

---

<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:** [February 24, 2022, 10:12pm UTC](https://forum.inductiveautomation.com/t/bug-5618-perspective-format-transform-with-numeric-pattern-text-being-capitalized-by-default/56433/12 "2022-02-24T22:12:39Z")

</div>

I’ve filed a ticket to correct this behavior; there’s no reason to uppercase the pattern.

---

<div class="post-metadata">

**Author:** ![yin.cheng](https://avatars.discourse-cdn.com/v4/letter/y/85f322/32.png) [@yin.cheng](https://forum.inductiveautomation.com/u/yin.cheng)\
**Post date:** [February 25, 2022, 6:00am UTC](https://forum.inductiveautomation.com/t/bug-5618-perspective-format-transform-with-numeric-pattern-text-being-capitalized-by-default/56433/13 "2022-02-25T06:00:56Z")

</div>

Thanks for showing how to do it! 😄

---

<div class="post-metadata">

**Author:** ![bfreeman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bfreeman/32/87436_2.png) [@bfreeman](https://forum.inductiveautomation.com/u/bfreeman)\
**Post date:** [May 27, 2025, 9:43am UTC](https://forum.inductiveautomation.com/t/bug-5618-perspective-format-transform-with-numeric-pattern-text-being-capitalized-by-default/56433/14 "2025-05-27T09:43:56Z")

</div>

To date the pattern is still uppercased. Has the ticket you filled ever been solved?

---

<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:** [May 27, 2025, 3:30pm UTC](https://forum.inductiveautomation.com/t/bug-5618-perspective-format-transform-with-numeric-pattern-text-being-capitalized-by-default/56433/15 "2025-05-27T15:30:53Z")

</div>

No, it's never risen to the top of the pile of work the Perspective team has in front of them, so it's still sitting in a backlog.

---

<div class="post-metadata">

**Author:** ![bfreeman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bfreeman/32/87436_2.png) [@bfreeman](https://forum.inductiveautomation.com/u/bfreeman)\
**Post date:** [May 27, 2025, 4:13pm UTC](https://forum.inductiveautomation.com/t/bug-5618-perspective-format-transform-with-numeric-pattern-text-being-capitalized-by-default/56433/16 "2025-05-27T16:13:35Z")

</div>

Okay. Is it expected to be fixed at some point? 3 years in a backlog seems a lot for a bug like this

---

<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:** [May 27, 2025, 5:13pm UTC](https://forum.inductiveautomation.com/t/bug-5618-perspective-format-transform-with-numeric-pattern-text-being-capitalized-by-default/56433/17 "2025-05-27T17:13:21Z")

</div>

Yes, at some point. The problem is prioritization; this is marked as a low priority issue (because it's easy to work around) and not a super common problem. Add that to the literally **thousands** of tickets we have, some of which will inevitably be a higher priority, and we don't get to items like this for years, even though it's absolutely not a complicated issue to fix. 🤷

---

<div class="post-metadata">

**Author:** ![bfreeman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bfreeman/32/87436_2.png) [@bfreeman](https://forum.inductiveautomation.com/u/bfreeman)\
**Post date:** [May 28, 2025, 7:05am UTC](https://forum.inductiveautomation.com/t/bug-5618-perspective-format-transform-with-numeric-pattern-text-being-capitalized-by-default/56433/18 "2025-05-28T07:05:34Z")

</div>

Understood. Thank you for the info. I would of thought that time in the backlog would of been a factor in prioritisation.
