Viewing 3 posts - 1 through 3 (of 3 total)
  • Migrated from old forum
    Participant
    Post count: 327
    #5920 |

    Hello, anyone has an example on how would you verify that a phone number requested (US Number) is entered correctly?

    so far we ask for a 10 digit number then we take it thru 3 gotoif to verify it:
    1- $”{$LEN({NewWirelessNo:0:1})}” = “10”
    2- $”${NewWirelessNo:0:1}” != “0”
    3- $”${NewWirelessNo:0:1}” != “1”

    if any of those fails we ask again for the number

    the problem is that it is endless, i would like something that times out after 3 tries and the validation is quite basic.

    any recomendations would be highly apreciated.

    thank you in advance.
    cesar

    Migrated from old forum
    Participant
    Post count: 327
    #5921 |

    I’m not sure if i understood the question well.
    If you wont to set timeout or hung up after 3 tries you can use loops. Create loop that count attempts and after 3 attempts simply hung up or set pause or set anything you need.

    Migrated from old forum
    Participant
    Post count: 327
    #5922 |

    understood, but what about verifying that the phone number is correct? does my 3 gotoif statements make sense? the problem is that even though you can set a max of digits, i don’t know were to set the minimum. so i can’t stop people from making mistakes and imput a number that is shorter than 10 digits, or they start the number with 1. and then they don’t have enough space to fit their last. the numbers in the US are 1-xxx-Xxx-xxxx.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.