how to validate phonenumber with out using localvariable?
Discussion posts and replies are publicly visible
What is this question about? Is there a specific reason to not use locals?
i want to know both the ways to validate..
could you give me an example for with and without using locals?
Sorry, the validation of a phone number does not depend on using locals in any way.
Please help me to understand your question.
a!localVariables( local!phoneNum, a!textField( label: "Phone Number", value: local!phoneNum, saveInto: local!phoneNum, validations: if( regexmatch( "[0-9] [0-9]", /*paste your regex here*/ local!phoneNum /*Put local or ri variable name*/ ), {}, "Invalid Phone Number" ) ) )
The code to validate for phone number by using local variables. i dont think so we can achieve it without using local or ri variable.