• Resolved LandyVlad

    (@landyvlad)


    I haven’t yet installed this plugin but intend to.

    On my current site I have a form where prospective customers contact me.

    Unfortunately on a number of occasions I have potentially lost sales as the email address they supplied has turned out to be invalid, I suspect as a result of a typing error.

    Can I set up Contact Form 7 so that a person has to complete two fields, eg
    Your Email:
    Please re-enter email to confirm:

    The form would then compare these two fields and make sure the contents are identical before allowing the form to be submitted?

    And if it is possible, can someone point me to the relevant ‘how to’instructions.

    Thank you ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    This post shows the how-to:

    https://contactform7.com/2015/03/28/custom-validation/

    Of course I don’t think it makes sense. You’ll just get two identical incorrect email addresses. Above is just an example of custom validation.

    Thread Starter LandyVlad

    (@landyvlad)

    Thanks.

    I understand what yous are saying when you think it doesn’t make sense, but
    I think it is a good idea especially IF ‘paste’ can be disabled for the confirmation box.
    It can save people who have accidentally done a typo.
    But most of all – the bloke who’s website it is (I’m building a site for a friend) wants it so.. ??

    Thread Starter LandyVlad

    (@landyvlad)

    @takayukister

    I’ve had a look at this and can’t get it to work. Where does that code actually go?

    Obviously I need to change the email address and email text in the example to match the variables already in the form, and I’ve tried that.

    I was trying to put the code at the bottom of the contact form, but it only appears to accept text there, and reproduces as such.

    Thread Starter LandyVlad

    (@landyvlad)

    (not sure how to change this to ‘unresolved’ if that’s even possible).

    It’s not yet resolved because the proposed solution I can’t seem to implement and need some further guidance.

    FYI @takayukister

    This is the code for my existing form:

    <fieldset>
    	<legend>Your Details</legend>
    	<ol>
    		<li> Name [text cf7s-name] </li>
    		<li> Email [email* cf7s-email] </li>
    <li> Confirm Email [email* cf7s-email2] </li>		
    <li> Phone [text cf7s-phone] </li>
    <li> Suburb and Postcode [text* cf7s-location] </li>
    	</ol>
    	<fieldset>
    	<legend>I am interested in:</legend>
    	<ol>
    		<li> [checkbox cf7s-checkbox-01 "Spare Wheel Carriers" "Wheel Carrier Parts" "Rijidij Accessories" "Bullbars" "Other"] </li>
    	</ol>
    	</fieldset>
    
    <fieldset>
    	<legend>My vehicle is a:</legend>
    	<ol>		
    <li>[select cf7s-select-01 "Defender 90" "Defender 110" "Defender 130" "Discovery 3" "Discovery 4" "Other"] </li>
    [group group-veh]<li> Please specify vehicle make and model[text cf7s-vehicle] </li>[/group]
    	</ol>
    	</fieldset>
    
    <p>How can we help you?</p>
    <li> Message [textarea cf7s-message] </li>
    
    	[submit "Submit"]
    	<p>* Required</p>
    </fieldset>
    	
    <p>Please press the Submit button when you have completed the form.</p>
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Email address validation / checking?’ is closed to new replies.