Skip to main content
sowmyak2554
New Participant
Jul 28, 2022 6:18 AM UTC
Question

how to validate phonenumber with out using localvariable?

how to validate phonenumber with out using localvariable?

    6 replies

    Inspiring
    Jul 28, 2022 6:20 AM UTC

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

    stefanhelzle0001
    Brainy
    Jul 28, 2022 6:20 AM UTC

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

    sowmyak2554
    New Participant
    Jul 28, 2022 6:23 AM UTC

    i want to know both the ways to validate..

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

    stefanhelzle0001
    Brainy
    Jul 28, 2022 6:26 AM UTC

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

    Please help me to understand your question.

    harshitb6843
    Brainy
    Jul 28, 2022 6:53 AM UTC

    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