how to validate phonenumber with out using localvariable?

how to validate phonenumber with out using localvariable?

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Senior Developer
    in reply to sowmyak2554

    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.

Children
No Data