How can I make a field requirement limiting characters from a minimum to maximum amount?

  • rtaadmin
    Asked on June 19, 2019 at 4:01 PM

    Hi! My name is Andrea Koehntop and I am a Marketing Coordinator at Runestone Telecom Association. We use JotForm for our online fillable service applications for new customers to fill out and submit online.

    I am trying to make a requirement when they create an email in the password field so that they must have to have at least 16 characters and no more than 80 characters. If possible, we would also like the requirements to be that they include at least one character from each of these groups: (a-z) (A-Z) (0-9) (!*+-,/=_)0/16

    Could you help me to get at least the minimum and maximum characters required in there?


    Thanks you!

    Andrea Koehntop

    andrea@runestone.net

    320-986-9074



     



    Jotform Thread 1863123 Screenshot
  • Welvin Support Team Lead
    Replied on June 19, 2019 at 7:08 PM

    I think you can do this with limit and conditional logic. The limit is in the field settings, but no minimum.

    15609852072019 06 20 016 Screenshot 10

    Next, set up a conditional logic like this:

    15609856052019 06 20 017 Screenshot 21

    Demo: https://form.jotform.com/91697623471971

    The texts:

    1,2,3,4,5,6,7,8,9,0

    a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,x,y,z

    !,*,+,-,.,/,=,_


    Or, why not generate the password for them and ask them to save the password? You can use the Random Value Generator widget:

    https://widgets.jotform.com/widget/random_value_generator

    To add a widget in the form: https://www.jotform.com/help/252-How-to-Add-a-Widget-to-your-Form

  • rtaadmin
    Replied on June 21, 2019 at 4:47 PM

    Thank you for the information!

    Would it be possible for people to get a frown face when the password does not meet all of the requirements and a smiley face when it does meet all of the requirements?

  • Welvin Support Team Lead
    Replied on June 21, 2019 at 6:45 PM

    You should be able to do that with the same setup, conditional logic to show images. But first, you need to add the frown and smiley faces in the form as an image.

    Here's another demo for showing the icons:

    https://form.jotform.com/91717415532961

    The conditions:

    15611571172019 06 22 007 Screenshot 10