WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. AverageJo
    Member
    Posted 1 year 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!

    http://wordpress.org/extend/plugins/visual-form-builder/

  2. Matthew Muro
    Visual Form Builder Pro
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 month 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

About this Topic