Skip to main content
sowmyak2554
July 28, 2022
Question

how to validate phonenumber with out using localvariable?

  • July 28, 2022
  • 6 replies
  • 0 views

how to validate phonenumber with out using localvariable?

    6 replies

    July 28, 2022

    In which variable you stored your data? It will be either local or RI variable.

    stefanhelzle0001
    Brainy
    July 28, 2022

    What is this question about? Is there a specific reason to not use locals?

    sowmyak2554
    July 28, 2022

    i want to know both the ways to validate..

    could you give me an example for with and without using locals?

    stefanhelzle0001
    Brainy
    July 28, 2022

    Sorry, the validation of a phone number does not depend on using locals in any way.

    Please help me to understand your question.

    harshitb6843
    July 28, 2022

    If you are capturing the value, then to store the value, you will need to have a variable. It can be either a Rule input or a local variable. 
    If you are trying to validate an existing value, then you can do it without a variable.

    Both ways have multiple ways of doing it. 

    1. Regex Match
    2. Specifying lower and upper bounds of the number (eg. 1111111-9999999)
    3. Check the length of the value