Mail Submission – All Conditional fields
-
Building a request form and when the information is submitted it submits ALL the first options from the conditional fields.
How to make it only submit the options the client choose?
back end code for the form:
<div style=”margin-bottom:40px;”>
<label>[text* your-name class:contact-text-field placeholder “Your Name”]</label>
</div>
<div class=”one-half”>
<label>[tel* telephone class:contact-text-field placeholder “Telephone Number”]</label>
</div>
<div class=”one-half last”>
<label>[email* your-email class:contact-text-field placeholder “Email Address”]</label>
</div><div class=”one-half”>
<label>[text* address class:contact-text-field placeholder “Address”]</label>
</div>
<div class=”one-half last”>
<label>[text* zip class:contact-text-field placeholder “Zip Code”]</label>
</div><div class=”one-half”>
<label>[select* contact-way class:contact-text-field “Best Way To Contact You?” “Phone” “Email”]</label>
</div>
<div class=”one-half last”>
<label>[select* contact-time class:contact-text-field “Best Time to Contact You?” “Early Morning” “Mid Morning” “Noon” “Afternoon” “Evening” ]</label>
</div><h3>What type of project are you interested in?</h3>
<div style=”margin-bottom:40px;”>
[select* TypeofProject class:contact-textarea-field include_blank “Pool & Spa Construction” “Renovations & Remodels” “Pool Maintenance & Repair” “Outdoor Living”]
</div>
<div style=”margin-bottom:40px;”>
[group construction]
[select* TypeofConstruction class:contact-textarea-field “New Pool Construction” “Is Your Home Under Construction” “Existing Home” “Play Pool” “Diving Pool”]
[/group]
</div>
<div style=”margin-bottom:40px;”>
[group renovations]
[select* TypeofRenovations class:contact-textarea-field “Pool Remodel / Repair” “Plaster” “Tile” “Coping” “Mastic” “Equipment” “Water Feature”]
[/group]
</div>
<div style=”margin-bottom:40px;”>
[group maintenance]
[select* TypeofMaintenance class:contact-textarea-field “Pool / Water Cleaning” “Pool Maintenance”]
[/group]
</div>
<div style=”margin-bottom:40px;”>
[group outdoor]
[select* TypeofOutdoor class:contact-textarea-field “Cabana” “Arbor” “BBQ Grill” “Outdoor Kitchen” “Fire Pit” “Fireplace”]
[/group]
</div><h3>Are you interested in another project?</h3>
<div style=”margin-bottom:40px;”>
[select* AnotherProject class:contact-textarea-field include_blank “Yes” “No”]
</div>
<div style=”margin-bottom:40px;”>
[group secondproject]
[select* TypeofProject2 class:contact-textarea-field “What is your second project you’re interested in?” “Pool & Spa Construction” “Renovations & Remodels” “Pool Maintenance & Repair” “Outdoor Living”]
[/group]
</div>
<div style=”margin-bottom:40px;”>
[group construction2]
[select* TypeofConstruction2 class:contact-textarea-field “New Pool Construction” “Is Your Home Under Construction” “Existing Home” “Play Pool” “Diving Pool”]
[/group]
</div>
<div style=”margin-bottom:40px;”>
[group renovations2]
[select* TypeofRenovations2 class:contact-textarea-field “Pool Remodel / Repair” “Plaster” “Tile” “Coping” “Mastic” “Equipment” “Water Feature”]
[/group]
</div>
<div style=”margin-bottom:40px;”>
[group maintenance2]
[select* TypeofMaintenance2 class:contact-textarea-field “Pool / Water Cleaning” “Pool Maintenance”]
[/group]
</div>
<div style=”margin-bottom:40px;”>
[group outdoor2]
[select* TypeofOutdoor2 class:contact-textarea-field “Cabana” “Arbor” “BBQ Grill” “Outdoor Kitchen” “Fire Pit” “Fireplace”]
[/group]
</div>
<div class=”one-half”>
<label>[select* project-type “New Pool Construction” “New Home Under Construction” “Existing Home” “Play Pool” “Diving Pool” class:contact-text-field placeholder “When are you free to talk?”]</label>
</div>
<div class=”one-half last”>
<label>[select* contact-way “Early Morning” “Mid Morning” “Noon” “Afternoon” “Evening” class:contact-text-field placeholder “When are you free to talk?”]</label>
</div><div>
<label>[textarea* message class:contact-textarea-field placeholder “Additional Information?”]</label>
</div><div class=”one-half”>
[recaptcha]
</div>
<div class=”one-half last”>
[submit class:contact-button “Send”]
</div>MAIL TO INFO:
[_date] @ [_time] CSTContact Information
From : [your-name]
Phone : [telephone]
Email : [your-email]Address:[address]
Zip Code:[zip]Please contact me by:[contact-way] in the [contact-time]
I am interested in : [TypeofProject][TypeofConstruction][TypeofRenovations][TypeofMaintenance][TypeofOutdoor]
I might be interested in another project:[AnotherProject] [secondproject] [TypeofProject2]
[TypeofConstruction2]
[TypeofRenovations2]
[TypeofMaintenance2]
[TypeofOutdoor2]Additional Information :
[message]—
Technical Information
This e-mail was sent from ([_url])
[_remote_ip][_user_agent]The page I need help with: [log in to see the link]
- The topic ‘Mail Submission – All Conditional fields’ is closed to new replies.