PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Maximum Characters not working on certain mobile devices

  1. peacewithgod
    Member

    I have set a limit of 200 characters for a comment field but I am still receiving comments with more than 200 characters from mobile devices.

    I know they are coming from a mobile device because they are coming from my mobile specific forms. How ever I have no way of knowing which type of mobile device they are on.

    How can I fix this issue??

    Posted 12 years ago on Tuesday January 10, 2012 | Permalink
  2. The character limit comes from a JavaScript. It's possible their device does not support JavaScript. If that's the case, you can work around it by validating the data after it's submitted, rather than relying on a client side script to enforce the limit. You can use the gform_validation filter to check the length of the comment submitted, and return an error if the length is over 200.

    Posted 12 years ago on Wednesday January 11, 2012 | Permalink