Tagged: CONTACT FORM
My client is reporting a character limit on the avia contact form message field. Is there a way to remove this limit?
Hey shanhard,
There is no limit set as far as I know. However we would like to take a look at it Would you mind providing a precise link to your site, showing the elements in question? We need to be able to inspect them in order to help :)
Best regards,
Vinay
Hi Vinay, thanks for the reply, here is the site:
Hi,
I copy pasted random text that has 55668 characters and there still was no character limit :)
Best regards,
Yigit
OK thanks I will investigate further. Thanks for the replies.
Hi,
Great! we will keep this ticket open so you can reach out to us in case you need any help.
To know more about enfold features please check – http://kriesi.at/documentation/enfold/
Thank you for using Enfold :)
Best regards,
Vinay
Hi there,
I would like to set a character limit to the Contact form Text Area. How do I do that?
Hi,
Please go to Enfold theme options > Layout Builder and check “Show element options for developers” and then edit your Contact Form element and give it a custom CSS class (“my-custom-class” in example below) and then add following code to Functions.php file in Appearance > Editor
function av_limit_textarea(){
?>
<script>
jQuery(window).load(function(){
jQuery('.my-custom-class textarea').attr('maxlength', '150');
});
</script>
<?php
}
add_action('wp_footer', 'av_limit_textarea');
Best regards,
Yigit
Thank you! Worked wonderfully!