Hello guys,
I hope everyone is doing great !
This is Raj, Here I am working on App and I have a requirement to format the Phone number in such a way that (###)-###-####.
Will , Any one please help me in that .
Thank you in advance,
Raj
Solved! Go to Solution.
there is a different in view and edit, in view there is htmltext used.
but because there is showing ABC it seems a string/alphanumeric is used for phone type so Brackets and Plus/Minus can be saved with number. this "a href" is a web link with url. if you click the app for registered "tel:" opens.
i believe a formatted input control is on the wishlist.
maybe using 3 textinput boxes and make a new string with it, but its not user friendly.
you can add extra data area with your own components that not direct belongs your recordset if you will make tel. no. input.
@Nani
Yes, you can automatically format a phone number as the user types it by creating an “input mask.” It’s amazing to watch the phone number dashes appear automatically as you type! Check out this article to learn how.
Link to article:
https://www.matthewdevaney.com/power-apps-phone-number-formatting-in-a-form-input-mask/
like this?
Text= Text(Value(TextInput1.Text),"[$-de-DE](000)-000-000")
Hai Markus,
Thank you very much for your reply,
As you mentioned in reply Text= Text(Value(TextInput1.Text),"[$-de-DE](000)-000-000") is it only for "Text" data type , or any other data types like "Phone" . Because In my app I used Phone Datatype to PhoneNumber (Field).And it is Showing HtmlText instead Text. Will you help me with this scenario.
Thank you
Raj
Markus' suggestion will only work for numeric fields.
PowerApps have no concept of a "Phone" data type. Your data source will be exposed such a field as either a Text or Number.
If it is Text then you can format it using the various string operators.
there is a different in view and edit, in view there is htmltext used.
but because there is showing ABC it seems a string/alphanumeric is used for phone type so Brackets and Plus/Minus can be saved with number. this "a href" is a web link with url. if you click the app for registered "tel:" opens.
i believe a formatted input control is on the wishlist.
maybe using 3 textinput boxes and make a new string with it, but its not user friendly.
you can add extra data area with your own components that not direct belongs your recordset if you will make tel. no. input.
Hai Markus,
Thank you very much for your help.
Raj
The Air Mail Envelope on the Floor
@Nani
Yes, you can automatically format a phone number as the user types it by creating an “input mask.” It’s amazing to watch the phone number dashes appear automatically as you type! Check out this article to learn how.
Link to article:
https://www.matthewdevaney.com/power-apps-phone-number-formatting-in-a-form-input-mask/
I must be missing something. I did exactly as written and the phone number does not appear. In fact after each digit is input, it disappears. There is a problem with one of the formulas but i cannot figure it out. Please Help!
User | Count |
---|---|
250 | |
102 | |
94 | |
47 | |
37 |