• Resolved juanfregoso2010

    (@juanfregoso2010)


    On our form we have required fields but some users are just putting in a space and the form submits, we would like to make the fields require more than a space and have it require a certain amount of characters.

    The page I need help with: [log in to see the link]

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

    (@constantcontact)

    Hi @juanfregoso2010

    Do you have any level of suspicion that those entries are potentially spam based? Or are they for sure legit people who may be getting away with a little bit of “fun” ?

    Asking because we have a WordPress filter related to attempted spam detection that we could make use of here. The idea would be to check if the entry has submitted fields that are just empty strings and/or white space and if so, reject the entry. This is something we could provide a code snippet for right now.

    Adding things like minlength attributes and settings around that would take a longer amount of time to get implemented and tested out, so trying to find a route that helps you more readily.

    Thread Starter juanfregoso2010

    (@juanfregoso2010)

    They are legit, sometimes people leave the country, Where the purchased was, or date of purchase. I would still like to know how to minlength attribute but I would appreciate that snippet of code if possible.

    Plugin Author Constant Contact

    (@constantcontact)

    Are you comfortable with adding/placing some Javascript to your site?

    Thinking adding some validation that a required field is more than just whitespace may be a bit more advantageous as someone could just hold down the spacebar long enough to meet a minlength and still submit.

    I’m thinking perhaps a hopefully quick snippet that can go through all your required fields and run a js trim on them, confirming if they actually have a value of something beyond spaces.

    Thoughts on that?

    Thread Starter juanfregoso2010

    (@juanfregoso2010)

    Yes that would be great.

    Plugin Author Constant Contact

    (@constantcontact)

    Haven’t forgotten this part, but haven’t quite had a chance yet to work something up. Going to try to as soon as I can manage.

    Thread Starter juanfregoso2010

    (@juanfregoso2010)

    Sure thing also is there an option to put dropdown options for as preset date option or country?

    Plugin Author Constant Contact

    (@constantcontact)

    Proving to be a hair more challenging than I was anticipating for some of this custom validation details to work out, so bear with me.

    Regarding dropdowns, we would need to rework the plugin to make that sort of input type utilizable by users and would need time as well, however I do see how that would be usable, depending on the type of extra content a given site owner is trying to collect about their signups.

    Plugin Author Constant Contact

    (@constantcontact)

    Hey @juanfregoso2010

    Sorry for the long delay in between replies. I wanted to check and see if you had come to any solutions on your own or if you’re still hoping for something from us here.

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

The topic ‘Constant Contact WP Form Required Fields’ is closed to new replies.