web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Automatic Input Field Masking for Markeitng

(1) ShareShare
ReportReport
Posted on by

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.

I have the same question (0)
  • Suggested answer
    Haig Liu Profile Picture
    Microsoft Employee on at

    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.

  • 1216ScreenName Profile Picture
    on at

    Thank you for your response. How do I use this with Marketing forms?

  • Petr Jantac Profile Picture
    Moderator on at

    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

  • RenJones Profile Picture
    5 on at

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 146 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 59

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 52 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans