Hi @knishal ,
You could try:
Set the TextInput's OnChange property to:
If(
!IsMatch(Self.Text,"\(\d*\) \d{3}-\d{4}") ||IsEmpty(Self.Text),
If(
IsMatch(Self.Text,"\d{10}"),
Set(TheValue,"("&Left(Self.Text,3)&") "& Mid(Self.Text,4,3)&"-"&Right(Self.Text,4));Reset(Self),
Notify("Wrong Format!It should be 9291234321 or (929) 123-4321");Set(TheValue,"");Reset(Self)
)
)
Set the TextInput's Default property to:
TheValue
Best Regards,
Bof