Viewing 3 replies - 1 through 3 (of 3 total)
  • In the extra field setting…use this Validation regex:
    /^.{0,255}$/
    and this Regex fail message:
    Too much! 255 chars max, please.

    Change 255 to the limit you want.

    Thread Starter mistalovapl

    (@mistalovapl)

    Thanks a lot Mike !

    I have one more question concerning the same issue if I may…

    Is there a way for the typing coursor to stop when the assigned number of restricted characters in extra field is reached ? Say, the number of characters is 250 and the coursor stops at 250 and won’t move any further nor allow the user to type any more characters (just as it is done in a text field, when for instance it concerns a phone number with the length limited to 9 characters) ?

    Oh! and by the way – congratulations on a great plugin !

    The maxlength attribute was made for text field types, but it does not work on textarera. So to make it behave like that for a textarea, you would have to use a javascript function.

    You can add javascript functions to the form yourself, just put the javascript after the form shortcode, then put the onkeypress command in the attributes of the extra field setting.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Fast Secure Contact Form] Message box text length in an extra field’ is closed to new replies.