cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
yanni99
Helper II
Helper II

Formated text always revert to [$-en-US] And I can't seem to make it go away

I have a Textinput that I am trying to set the default to Text(VarText, "###-##-##"), but anything I do revert it back to Text(VarText, "[$-en-US]###-##-##").

I have tried the same in a Text label and I have the same ouptput. Always reverting bakc to Text(String, "[$-en-US]###-##-##")

I had it working for a second but then it reverted back automatically.

I have tried Text(String, "[en-US]###-##-##")

Text(String, "###-##-##","[en-US]")

I have tried also with zeros

Tell me it's a bug, I am going mad over this.

Started the new app today if that helps. Although it does the same thing in an older app I have.

1 REPLY 1
v-xida-msft
Community Support
Community Support

Hi @yanni99 ,

Actually, it is not an bug, it is an normal behavior within Text function when you use it to format a number value or a date time value, the language placeholder would be inserted automatically.

 

If you specify a custom format without a language placeholder and the format is ambiguous from a global standpoint, the language tag for your current language is inserted automatically.

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-text#language-placeh...

 

Actually, when you specify custom format within the Text function to format date or number value, you need also to specify the language placeholder, it you do not specify it manually, this language placeholder would be inserted automatically based on your currently language.

 

If you want to remove the language placeholder from the Text function, I afraid that there is no way to achieve your needs in PowerApps currently.

 

If you would like this feature to be added in PowerApps, please submit an idea to PowerApps Ideas Forum:

https://powerusers.microsoft.com/t5/Power-Apps-Ideas/idb-p/PowerAppsIdeas

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (1,491)