Notifications
Announcements
No record found.
Is it possible with a marketing form to automatically format the fields?
For example, we want the phone number format to always be (xxx) xxx-xxxx. When the person filling out the form enters just the numbers of their phone number, I want the form to automatically reformat it for them.
Hi 1216ScreenName,
It is recommended that you use PCF control:
https://pcf.gallery/international-telephone-input/
https://www.crmcrate.com/power-apps/pcf-custom-control-in-dynamics-365-crm-step-by-step-guide/
It also includes a number of other out-of-the-box extensions.
Thank you for your response. How do I use this with Marketing forms?
Hello,
I would recommend editing the HTML source code of the form to modify the input field using Javascript.
You can find some inspiration here or here.
Petr
If you're using the preview real-time marketing forms; there's an option to add validation to fields including custom validation via regular expressions to fields to ensure that the user enters the value in the format you require:
learn.microsoft.com/.../real-time-marketing-form-editor
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 146 Super User 2025 Season 2
#ManoVerse 59
Gerardo RenterÃa Ga... 52 Most Valuable Professional