Preformat a Text box field with " - - " so that the user can just type numbers for a SSN number. - InfoPath Dev
in

InfoPath Dev

Preformat a Text box field with " - - " so that the user can just type numbers for a SSN number.

Last post 01-16-2009 11:36 PM by swathip. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 01-16-2009 05:08 PM

    • Michael71
    • Top 50 Contributor
      Male
    • Joined on 10-07-2006
    • Mclean, Virginia-USA
    • Posts 283

    Preformat a Text box field with " - - " so that the user can just type numbers for a SSN number.

    I'm trying to preformat a text box so that a user can just type 9 digits and only digits. Anyone know a way this can be done? The hypens should not be able to be erase or deleted or moved.

  • 01-16-2009 09:08 PM In reply to

    • Anuma
    • Top 25 Contributor
      Female
    • Joined on 07-20-2005
    • India
    • Posts 525

    Re: Preformat a Text box field with " - - " so that the user can just type numbers for a SSN number.

  • 01-16-2009 10:20 PM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: Preformat a Text box field with " - - " so that the user can just type numbers for a SSN number.

    Hello,

    We can add the custom validation like how user should be entering that value. In this case we have to give one example of giving input values of SSN number. Otherwise we can add the one more expression box to beside the text box. If user enters the value in text box then we will show your SSN format in that expression. If that expression is not matches then we will give the validation.

  • 01-16-2009 11:36 PM In reply to

    Re: Preformat a Text box field with " - - " so that the user can just type numbers for a SSN number.

    Hi,

    We can add a validation using the custom patterns so that if the user enters the wrong format (other than SSN) you can let the user to enter correct format by showing a screen tip.

    For this follow the below steps.

    1. Go to data validation of the text box.

    2. Click Add. Select the text box field in the first drop down, does not match pattern in second drop down and select social security number from the standard patterns. Click ok.

    3. Write the screen tip that you want to display to the user when he enters wrong format.

     

    Swathip
    www.ggktech.com
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.