Visual Form Builder
[resolved] Minimum and Maximum Characters on Text Field (3 posts)

  1. AverageJo
    Posted 3 years ago #

    Is there any bit of code I can put in to make a regular text field (not text area) have a maximum of 10 characters (not words) in it? But only in certain text areas. Not all.

    I already bought the pro version, which has those options (but in words instead of characters) which works great. It's just now I need a way to add code, to do this with characters, in a regular text field.

    Matt your the best! Please help!


  2. Matthew Muro
    Plugin Author

    Posted 3 years ago #

    Yep, you can do this pretty easily.

    In the CSS option for your field, add the following: {minlength:10}

    That's it!

  3. brookegiles
    Posted 2 years ago #

    I know that you are saying CSS Option, but on VFB Pro you only have CSS Class. Not option. And when I add the class and then go to my style sheet to add {minlength} or {maxlength} it does not restrict the user in the field.

    Where is this CSS Option and if it does not exist, how am I to limit my characters?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Visual Form Builder
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic