Notifications
Announcements
I am seeing the set +27 but it is not showing on the front end or through to Dynamics CE. I need for a user to enter 079123456789 onto the form (079/067/083 etc as the input beginning) and the 0 replaced by +27 leaving it as eg +2779123456789. Please can someone advise where I am going wrong on the input mask or if there is an alternative solution even if a preset for +27 and then the number. I am using Power Apps Forms. Thank you.
(This is what is showing front end for which doesn't match what's on the backend form)
Field Masking will not replace values, it only validates and adds in any literals you've put into the mask. So the Masking control will not replace 0 with +27: You will get +27079123456789 (which will fail validation because it is too long). Just skip the 0 and it should work. But if your users NEED to enter the 0, then you will need to come up with your own masking approach (through formscript, most likely).
Thank you. I need to put something into the masking like 000 or 999 like I did but need the 0 to be replaced by +27 as all users add 0...... What is formscript?
Formscript is Dataverse's supported client-side javascript code execution option. It gives you a way to register javascript code, with an easy-to-use platform API that helps you to create realtime, user-interactive logic on model driven app pages. For example, it would let you write an event that fires every time the phone number field is updated by a user to grab that leading 0 and replace it with +27
Apply business logic using client scripting in model-driven apps using JavaScript - Power Apps | Microsoft Learn
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 796 Most Valuable Professional
Michael E. Gernaey 327 Super User 2025 Season 2
Power Platform 1919 268