Viewing 15 replies - 1 through 15 (of 15 total)
  • Hi dsan996, try adding the following min-width: with a value in the same field you are adding the maximum width.

    Thread Starter dsan996

    (@dsan996)

    Hi, that didn’t work. The error message “Maximum of 0 characters exceeded.” appears when trying to submit the form.

    Hi can you share with me what value did you add.

    Thank you

    Thread Starter dsan996

    (@dsan996)

    I added this value to the Max length field:

    min-width:100

    Also I tried with this one

    min-length:100

    Both options are showing the “Maximum of 0 characters exceeded.” when submitting the form.

    Hi can you try the following and make sure you add px.

    min-width:100px

    Regards

    Thread Starter dsan996

    (@dsan996)

    The same “Maximum of 0 characters exceeded.”.

    Is there any way to achieve this using the “Validation regex” field?

    Can you let me know what kind of field are you trying to add? And what is the purpose of the field or fields?

    Thank you

    Thread Starter dsan996

    (@dsan996)

    Sure, the field type is textarea. It is an infographic submission site so the purpose of this field is for the user to add a description for the infographic they are submitting. The min length is a way to encourage users to send original and long texts as descriptions.

    Why don’t you add some HTML before the field letting them know what they have to do.

    In regards to your question above..

    Is there any way to achieve this using the “Validation regex” field?

    No, Validation regex would not work in your case. This is what Mike Challis has typed in regards to Validation regex..

    Validation regex:
    Use a regular expression to validate if form input is in a specific format. Example: If you want numbers in a text field type but do not allow text, use this regex: /^\d+$/ Can be used for text, textarea, date and password field types.

    Regards

    Thread Starter dsan996

    (@dsan996)

    The problem is that a simple html message doesn’t discourages people from sending short descriptions. That’s why I wanted to ad a restriction to the form.

    I think the only way you can achieve this is by adding a JavaScript function. Have a read on this forum. It does require some knowledge.

    Kind regards

    Here is another solution that might do the trick as well.

    Thread Starter dsan996

    (@dsan996)

    I managed to achieve this by installing the plugin Contact Form 7 with the Minlenght free extension.

    Thanks anyway.

    I am glad to hear you have resolved your issue.

    Could you mark this support thread as resolved as you no longer are using this plugin.

    Thank you

    Thread Starter dsan996

    (@dsan996)

    Resolved.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Minimum length for text area’ is closed to new replies.