• Resolved RgDesign

    (@rgdesign)


    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] CST

    Contact 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]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter RgDesign

    (@rgdesign)

    Hopefully I made sense… When the data is submitted or emailed I just want the data that the user submitted in the conditional form area… I don’t want the first option of the conditional fields.

    Can this plugin omit and not show the data not shown?

    Plugin Author Jules Colle

    (@jules-colle)

    yes, you can use [my-group-name] … [/my-group-name] tags. see the tutorial and the plugin description.

    Thread Starter RgDesign

    (@rgdesign)

    Sorry working on the project and wondering if I have to build a conditioning group in the mailto…

    Plugin Author Jules Colle

    (@jules-colle)

    yes it will also work on the email To field

    Thread Starter RgDesign

    (@rgdesign)

    Thank you! I should have refreshed my page before typing my last question. Thank you for replying.

    I guess I’m misunderstanding how the [group]..[/group] in the email works. As I can’t write a condition in the tab.

    Here is the easiest way I can explain what I want to do:
    I have a question in the form “What is the best way to contact you?”
    Answers are Phone or Email
    if Phone is chosen
    Another field is shown on the form with the options “morning” “noon” “afternoon”
    if Email is chosen
    field is not shown.

    Now in the email I have the fields to show “Best way to contact me [contact-way] (will be phone or email) in the [best-time]

    The issue I can’t figure out is IF “email” is chosen then [best-time] should not be shown in the email. Right now the email shows the first option “morning”

    Thread Starter RgDesign

    (@rgdesign)

    Okay… there is an option in the mail tab “Exclude lines with blank mail-tags from output” and it seems to not show those fields. So that works!

    So now my question is can I write a condition for the mail to hide information?

    Something like
    if [group-name] equals “Option Name” then hide [group-name-2]

    Thread Starter RgDesign

    (@rgdesign)

    Is there a way to add the conditioning to the mail? That way I can display text and the content if the client decides to fill in some of the conditional forms fields?

    Plugin Author Jules Colle

    (@jules-colle)

    Thread Starter RgDesign

    (@rgdesign)

    Thank you Jules!

    Plugin Author Jules Colle

    (@jules-colle)

    you’re welcome RgDesign!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Mail Submission – All Conditional fields’ is closed to new replies.