• I’ve gotten my form working ALMOST just the way I want.

    I have 11 required fields (its really an exam). I automatically populate their name, email address and the email subject for them and have hidden them in a non-visible div. This works well for mapping the answer to a human.

    When a person fills in the form and submits they get a success message.

    When the don’t fill the form in completely, nothing happens… no submission and no message.

    I’m sure I’ve made an error.

    Thank you

    https://www.ads-software.com/plugins/contact-form-7/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Having just come fresh off troubleshooting my own problem I had a similar issue where I didn’t see any error message either.

    Using Chrome Dev Tools I was able to view the source in real time and saw that after I hit Submit a new div did come up and held an error message. I just couldn’t see it on the web page because the div came up behind the form and so wasn’t visible.

    I then used CSS to reposition the div so it would not be hid behind the form.

    Thread Starter icebox500

    (@icebox500)

    Thank you rstaats, the CSS hunt is a battle.

    Buzztone, what is the difference between a positive confirmation and an error message? I get the positive confirmation but not negative in the Unicon theme.

    When I switch themes I can see the negative alert.

    James

    Thread Starter icebox500

    (@icebox500)

    RE: what is the difference between a positive confirmation and an error message?

    ??Positive confirmation is as you describe “When a person fills in the form and submits they get a success message.”

    Error message is “Please fill the required field” in red?? when no value is supplied for a required field.

    If you are not getting a negative response when you don’t fill in a required field it is possible you have a JavaScript Conflict in the Unicon theme??.

    RE: I … have hidden them in a non-visible div.??

    ??Can’t understand what you have done here but this could also be the cause of your problem depending on how you have done this.

    Thread Starter icebox500

    (@icebox500)

    Thank you for your response to my very unclear post.

    For starters, everything works fine. It turns out that the Unicon them designer made some forceful choices in his CSS in regards to WP 7. I fixed them to meet my needs.

    What I meant by a hidden div is, simply, that I have a form that I wanted to seem less like a form and more like a built in questionnaire – I didn’t want to ask for Name and User ID. I used your form to create the name and email fields but then hid them in a div that does not display.

    You cannot access this form without being logged in, so, in theory, I should still gather the user details in the email I receive.

    Thank you,

    James

    I’d make the hidden name and email fields not required if you haven’t already done that.

    Also consider using a submission storage plugin like Contact Form DB or Contact Form 7 Storage to save all your CF7 form submits to the WP database. They provide a robust record of all form submissions even when things go a little wrong.

    Also did you write to the Unicon theme designer about his “forceful choices in his CSS in regards to WP 7”. It’s generally poor practice to do that with a super popular plugin like CF7 – it could cause a lot of pain for his users.

    Finally if this resolves your question, it helps others contributing here, if you can flag your post as [resolved]

    Thread Starter icebox500

    (@icebox500)

    Good tip on ensuring they are not required on hidden fields.

    Thank you for the recommendation on DB storage, yes, I will be sure to add that.

    As for the Unicon author, yes, I sent him a message and I’m not the first on his forum to comment on it!

    James

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Success messages show but error message does not’ is closed to new replies.