If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

Featured templates

JS Animated. How to set a custom number of min and max characters required in a field (based on RD mailform)

This tutorial will show you how to set a custom number of min and max characters required in a field (based on RD mailform).

In order to do this you should perform the following steps:

  1. Connect to your FTP or use the hosting FileManager tool and locate the file of the page your contact form is on. In our case the form is located on Contact Us Page.

    JS Animated.How_to set_a_custom_number_of_min_and_max_charachters_required_in_a_field_(based_on_RD_mailform)1

  2. Use Search to find the code of the contact form. Usually the needed code looks the following way:

    <textarea name="message" data-constraints="@NotEmpty" placeholder="Message:"></textarea>

    JS Animated.How_to set_a_custom_number_of_min_and_max_charachters_required_in_a_field_(based_on_RD_mailform)2

  3. After doing this you need to replace data-constraints value with the following code and change 10 and 9999999 to the needed values:

    @Length(min=10,max=999999)

    JS Animated.How_to set_a_custom_number_of_min_and_max_charachters_required_in_a_field_(based_on_RD_mailform)3

  4. Save the changes and check your contact form.

    JS Animated.How_to set_a_custom_number_of_min_and_max_charachters_required_in_a_field_(based_on_RD_mailform)4

Feel free to check the detailed video tutorial below:

JS Animated. How to set a custom number of min and max characters required in a field (based on RD mailform)

Also, don’t forget to review the collection of our brand new website templates.