Skip to main content

Notifications

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.

  • RenJones Profile Picture
    RenJones 5 on at
    RE: Automatic Input Field Masking for Markeitng

    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

  • Petr Jantac Profile Picture
    Petr Jantac on at
    RE: Automatic Input Field Masking for Markeitng

    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

  • RE: Automatic Input Field Masking for Markeitng

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

  • Suggested answer
    Haig Liu Profile Picture
    Haig Liu Microsoft Employee on at
    RE: Automatic Input Field Masking for Markeitng

    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.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,031 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,868 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans