Last active
January 13, 2017 05:13
-
-
Save adrianspeyer/b856ba93dffba2112a795fe08383097d to your computer and use it in GitHub Desktop.
If you are using the standard Hubspot forms on your landing pages and you need to limit the text area character count to ensure a Salesforce sync, as the limit is 255 characters. Add the following Javascript to your footer.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(window).load(function() { | |
$('textarea').keypress(function(){ | |
if(this.value.length > 255){ | |
return false; | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you want a character count