• Resolved horinezachary

    (@horinezachary)


    I am using the Constant Contact Forms plugin to create a “Contact Us” form for a client’s site, and we chose to allow users to input a message, and then that message gets stored in the “notes” of their Constant Contact Profile. However, there have been some responses to the form that are over the maximum length allowed by the notes field. I was wondering if there is a way to either cap the input field to 500 characters, or to truncate the field before it gets submitted so that the contact would still get saved, even if the message attached was over the max length.

    [2021-06-26 07:17:09] API.INFO: ConstantContact_API::add_contact:527 - json.max.length.violation - #/notes/0/note: Value exceeds maximum length of 500. [] []

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Constant Contact

    (@constantcontact)

    Hi @horinezachary

    Do you have any public links you could provide for us to check on some things? We should already be adding a maxlength="500" attribute to the textarea fields, but it appears that this isn’t a 100% foolproof thing somehow at the moment, or automated things are getting around it.

    Thread Starter horinezachary

    (@horinezachary)

    The form used is available here: https://hr4vr.com/contact/

    It seems as thought that is the case, and that automated messages were the only ones getting through. I discovered the availability of reCaptcha support in your plugin last night, so we’ll see if that mitigates the issue.

    • This reply was modified 4 years, 11 months ago by horinezachary.
    Plugin Author Constant Contact

    (@constantcontact)

    hopefully indeed. The only way I can think of something getting by this would be if bots are somehow able to edit the attributes on the field and remove the hard limit. Kind of a thought I don’t want to think about because that’d be quite some sophistication there.

    That said, I’m not sure if we should do a server-side slice of the content, or let it fail. It feels like it’d be stepping aside for the nefarious entries. Legit people would hit that character limit and not have the entry rejected. This let the entry fail.

    Thread Starter horinezachary

    (@horinezachary)

    Thank you for your help, just from an aesthetic point of view, it might make sense to have an option to provide a “characters left” counter or a message on hitting the 500 character limit that would let the user know why they can’t type any more.

    Plugin Author Constant Contact

    (@constantcontact)

    will file that internally for consideration. Thanks for the feedback on that.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Constant Contact Forms Text Area Length’ is closed to new replies.