Skip to Content
avatar image
Former Member

How can I check length of a textbox in Screen Personas?

Hey! I’ve been using Screen Personas, and I’m not going to lie I’m a beginner.

So here’s the problem;

•I have a text field (which must contain 16 digits of a credit card)

•I set the maximum Length to 16

•What I want is that if the user types less than 16 digits and hits submit button an alert appears and says “must enter 16 digits”.

How can I get the length of the text field? And how can I make an alert if there are not 16 digits?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Dec 11, 2017 at 05:18 PM

    This should help... it has an example exactly like what you're looking for.

    Add comment
    10|10000 characters needed characters exceeded