Skip to main content

Notifications

Community site session details

Community site session details

Session Id : MXFlZ8a2pTGxodVRWYlVDw
Power Apps - Microsoft Dataverse
Answered

Data Type regarding

Like (0) ShareShare
ReportReport
Posted on 22 Dec 2021 08:06:39 by 46

We know that there is a datatype called phone . As we Know phone number contains only number but phone datatype can also accepts Alphabets

Is there any solution  of Phone number to accepts only number.

Categories:
  • Ram Prakash Profile Picture
    5,179 Super User 2025 Season 1 on 24 Dec 2021 at 12:52:03
    Re: Data Type regarding

    Thanks @ELango đꙂ

  • ELango Profile Picture
    46 on 24 Dec 2021 at 11:39:08
    Re: Data Type regarding

    Thanks @rampprakash . It works Fine :). Once again thanks for your Solution. Keep rocking

  • Ram Prakash Profile Picture
    5,179 Super User 2025 Season 1 on 24 Dec 2021 at 11:06:56
    Re: Data Type regarding

    Dear @ELango,

     

    JavaScript is a Case Sensitive and if we miss a small Quotes the whole script won;t work. As per your Code in the Else condition '(Quotes) in cr6ab_ph can you please change it to "cr6ab_pn"

     

    rampprakash_1-1640343965663.png

    Please mark as Answer if it is helpful and provide Kudos

     

    Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA

    Blog : https://microsoftcrmtechie.blogspot.com

  • Verified answer
    ELango Profile Picture
    46 on 24 Dec 2021 at 10:28:05
    Re: Data Type regarding

    1.PNG2.PNG3.PNG

     

    4.PNG

     

    Hi @rampprakash

    These are some of screenshots  

     

  • Ram Prakash Profile Picture
    5,179 Super User 2025 Season 1 on 23 Dec 2021 at 08:03:24
    Re: Data Type regarding

    Hello @ELango,

     

    Are you working on TRIAL Environment?

     

    Because I got the same error on click of Save Button after form Customization.

     

    If it's not Trail try Raising MS ticket to get it fixed 🙂

     

    Please mark as Answer if it is helpful and provide Kudos

     

     

    Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA

    Blog : https://microsoftcrmtechie.blogspot.com

  • ELango Profile Picture
    46 on 23 Dec 2021 at 05:24:55
    Re: Data Type regarding

    Hi @rampprakash ,It shows error like this

    error1.PNG

  • Ram Prakash Profile Picture
    5,179 Super User 2025 Season 1 on 23 Dec 2021 at 05:00:32
    Re: Data Type regarding

    Hello @ELango,

     

    As suggested by @v-bofeng-msft you can go with OOB Behavior to achieve this scenario and it's working perfectly

     

    To adding :

     

    Please find the Navigation to go to Classic Form

     

    1. Navigate to https://make.powerapps.com

    2. Click on Gear Icon at the Top then select Advance Settings

    3. Then Select Settings --> Customization --> Customize the System

    4. Left Side Expand Entities --> Again expand Respective Entites where phone number field Available

    5. Open Main Form --> Select Field and Click Change properties

     

    then you can follow as per @v-bofeng-msft suggessted

     

     

    Please mark as Answer if it is helpful and provide Kudos


    Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
    Blog : https://microsoftcrmtechie.blogspot.com

     

     

  • v-bofeng-msft Profile Picture
    on 23 Dec 2021 at 03:55:11
    Re: Data Type regarding

    Hi @ELango :

    You could edit the main form in classic mode and set the phone number's property to add a input Mask control.

    vbofengmsft_0-1640231600933.png

    If you only allow users to enter 13 digits, then set the Mask property to 13 zeros.

    vbofengmsft_1-1640231671014.png

    I think this link will help you a lot:

    Input Mask Custom Control on Model Driven App 

    Best Regards,

    Bof

     

     

  • Ram Prakash Profile Picture
    5,179 Super User 2025 Season 1 on 22 Dec 2021 at 11:17:19
    Re: Data Type regarding

    Hello @ELango,

     

    Can you please click Show Details and Download the log file and share here?

     

    Hope you followed the YouTube link which i have sent 

     

    Let me Give a quick View here.

     

    1. Navigate to https://make.powerapps.com

    2. Expand Tables

    3. Open the Table where phone Number Field available

    4. Click Fields and Copy the Logical name (it looks like cradf_phonnumber or new_phonenumber)

    5. Click Forms --> Open Main Form

    6. Click On the Field(PhoneNumberField) --> Click Events --> Click Add Event handler --> Write a function name and make sure you selected PASS PARAMETER AS EXECUTION CONTEXT

    7. if in 6th Point your webresouce not available add the webresouce at the left Last Option Library

     

    Please mark as Answer if it is helpful and provide Kudos


    Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
    Blog : https://microsoftcrmtechie.blogspot.com

     

     

    Please mark as Answer if it is helpful and provide Kudos


    Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
    Blog : https://microsoftcrmtechie.blogspot.com

  • Devikumari Krishna Profile Picture
    988 Super User 2024 Season 1 on 22 Dec 2021 at 11:06:09
    Re: Data Type regarding

    Hi @ELango ,

     

    Please see if you have set the form properties as in below screen shot,

     

    DeviKrishna_0-1640171146123.png

     

     

    -------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    My Blog: Dynamics 365 Key Topics – https://d365topicsbydk.com/
    My Youtube Channel : https://www.youtube.com/channel/UCxSIryP2ah2VpEFr-Z72t1A

    Regards
    Devi

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 the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Microsoft Dataverse

#1
mmbr1606 Profile Picture

mmbr1606 22 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 19

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 17 Super User 2025 Season 1

Overall leaderboard

Featured topics

Loading started