Hi.. can anybody help me to validate phone number in us format while inputing
Solved! Go to Solution.
Hey @neethup
Hey @neethup
@yashag2255 Hi.. i just want to validate whether the input phone number is in the right format or not.. if its not want to show a validation error
Hey @neethup
@yashag2255 I have added a label to show error message but it is not going when the condition is true..
onchange-If(!IsMatch(TextInput1.Text,"^(\([0-9]{3}\) |[0-9]{3}-)[0-9]{3}-[0-9]{4}$"),Set(ResetInput,false),Set(ResetInput,true))
Label visible(to show msg)-If(ResetInput,false,true)
Label Text= Not a valid phone no
I have included this
Hi @neethup
onchange-If(!IsMatch(TextInput1.Text,"^(\([0-9]{3}\) |[0-9]{3}-)[0-9]{3}-[0-9]{4}$"),Set(ResetInput,true);Set(ResetInput,false))
Label visible(to show msg)-If(IsBlank(TextInput1.Text) || IsMatch(TextInput1.Text,"^(\([0-9]{3}\) |[0-9]{3}-)[0-9]{3}-[0-9]{4}$"),false,true)
Hope this Helps!
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
User | Count |
---|---|
236 | |
112 | |
94 | |
59 | |
31 |
User | Count |
---|---|
289 | |
130 | |
104 | |
62 | |
58 |