• Resolved nickk40

    (@nickk40)


    I would like to add a validation to a textarea to set a maximum length (max. number of characters). How can I do this? The validation field is always greyed out.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter nickk40

    (@nickk40)

    I understand now that I am supposed to implement this validation by using ‘CSS classes’ for the textarea. If I include {maxlength:10;} for the CSS class, the field turns red when you enter more than 10 characters.

    But if you want, you can ignore the fact that the field turns red and still enter more than 10 characters.

    How can I enforce a user to type no more than 10 characters?
    As a CSS class I tried {maxlength:10; enforceMaxLength:true;} but this doesn’t work.

    Thread Starter nickk40

    (@nickk40)

    Or alternatively, is there a way to display a dynamic character count underneath the textarea?

    Hi there Nick, Unfortunately, the free version does not have this feature. The Pro version does have a mix/max words validation for the TextArea field. Feel free to use the Demo(URL below).

    http://demo.vfbpro.com/

    Thanks!
    Shane
    VFB Pro

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Validation field greyed out’ is closed to new replies.