Contact Form 7
[resolved] How to Require a Submit that Doesn't Accept the Auto Populate Data (3 posts)

  1. Digiknight
    Posted 1 year ago #

    I have contact form 7 integrated into my theme on singlestoreyextension.co.uk

    I have it set up (code below) to auto populate name, etc, so that people know what to type in

    What I want to do is require that people fill in that data. At the moment you can hit "submit" without filling in the data and it sends the auto data to me, which is no good to me. I thought I had used asterix's correctly to force the data add but apparently not.

    I want anyone submitting who hasn't filled in all the data to be prompted to fill it in BEFORE any email is submitted. Any ideas how to do this?

    <h3 align="center">GET A FREE QUOTE!</h3>
    <p align="center">All quote request are answered within 24hrs. Just fill in the form below and we’ll get back to you ASAP!</p>

    <div id="obtquoteform">

    <div id="obtformleft">
    <div>[text* entername id:entername class:obtinput "Enter Name"]</div>
    <div>[text* enteremail id:enteremail class:obtinput "Enter Email"]</div>
    <div>[text* enterphone id:enterphone class:obtinput "Enter Phone"]</div>
    <div>[text entertime id:entertime class:obtinput "Best Time To Call"]</div>

    <div id="obtformright">
    <div>[textarea entermessage id:entermessage class:obtinput "Enter Brief Message..."]</div>
    <div>[submit "GET A QUOTE"]</div>
    <div align="center" id="obtquoteformprivacy">you can view our privacy policy here</div>



  2. Takayuki Miyoshi
    Plugin Author

    Posted 1 year ago #

  3. Digiknight
    Posted 1 year ago #

    Brilliant, thanks for that :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic