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.
Thanks @rampprakash . It works Fine :). Once again thanks for your Solution. Keep rocking
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"
Please mark as Answer if it is helpful and provide Kudos
Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
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
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
Hi @ELango :
You could edit the main form in classic mode and set the phone number's property to add a input Mask control.
If you only allow users to enter 13 digits, then set the Mask property to 13 zeros.
I think this link will help you a lot:
Input Mask Custom Control on Model Driven App
Best Regards,
Bof
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
Hi @ELango ,
Please see if you have set the form properties as in below screen shot,
-------------------------------------------------------------------------
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
mmbr1606
22
Super User 2025 Season 1
stampcoin
19
Michael E. Gernaey
17
Super User 2025 Season 1