Conditional – Contact Form 7
-
Hi Everyone,
This is my first post and also fairly new to WordPress in general. I am helping out my cousin who own a medical center. I started on this form below but I was wondering if anyone could help me with making a conditional form.
If a patient selects:
Between 8AM – 12PM
Between 12PM – 3PM or
Between 3PM – 5PM
I would like only the morning doctors to show up.
However, when selecting Between 6PM – 10PM I would like the evening doctor to show up.Is this at all possible in Contact form 7?
Please see code below, any help/advise/suggestion is much appreciated.
<h2 class=”text-divider-double”>Your Personal Details</h2>
<p>First Name (required)
[text* your-fname] </p><p>Last Name (required)
[text* your-lname] </p><p>[radio NewExisting “New Patient” “Existing Patient”]</p>
<h2 class=”text-divider-double”>Contact Details</h2>
<p>Phone Number
[tel* Phone]</p><p>Your Email (required)
[email* your-email] </p>
<h2 class=”text-divider-double”>Appointment Details</h2><p>Preferred Date
[date* date placeholder “Date”] </p><p>Preferred Time
[select PreferedTime placeholder “Preferred Time” “Between 8AM – 12PM” “Between 12PM – 3PM” “Between 3PM – 5PM” “Between 6PM – 10PM”]</p><p>Preferred Doctor
[select PreferedDoc placeholder “Preferred Doctor” “Dr Morning 1” “Dr Morning 2” “Dr Morning 2” “Dr Evening 1”]<p>[submit “Send”]</p>
The topic ‘Conditional – Contact Form 7’ is closed to new replies.