I have edit form in PowerApp which have text field for phone number and I wanted to validate the Phone Numberentered is only 10 digits,
onChange property I have Set(formattedNumber, Text(Value(DataCardValue1.Text), "[$-en-US](###) ###-####"));
Set(changeNumber, true)
on Default for DataCardValue1 If(IsBlank(Parent.Default), formattedNumber, If(changeNumber, formattedNumber, Text(Parent.Default, "[$-en-US](###) ###-####")))
The validation isnt working, i can enter a unlimited amounts of digits which isnt what i want.
What is the best way to handle this use case.
Thanks

Report
All responses (
Answers (