• Resolved cnecrea

    (@cnecrea)


    Hi there,

    I want to make a contact form including “name”, “email” “municipality” “town” and “message” but i am not able to do this. I was searching into this forum but nothing helped me. I am doing something wrong?

    I have as municipality: Barcelona and Madrid. Each other has two towns.
    For Barcelona: Abrera, Aguilar de Segarra
    For Madrid: Ajalvir, Alcala
    For eg. when I select municipality Barcelona, another column has to open to select the towns. Same for Madrid.

    This is the FORM code that I use:

    <div class=”column one-second”>[text* your-name placeholder “Name”] </div>
    <div class=”column one-second”>[email* your-email placeholder “Email”] </div>
    <div class=”column one-third”> [select* municipality first_as_label “Municipality” “Barcelona” “Madrid”]</div>

    [group GrupBarcelona]<div class=”column one-third”> [select* your-townofBarcelona first_as_label “Select Town of Barcelona” “Abrera” “Aguilar de Segarra”]</div>[/group]

    [group GrupMadrid]<div class=”column one-third”> [select* your-townofMadrid first_as_label “Select Town of Madrid” “Ajalvir” “Alcala”]</div>[/group]

    <div class=”column one”>[textarea* your-message x5 placeholder “Message”]</div>
    <div class=”column one”>[submit “Send”]</div>

    For the MAIL i use this code:
    TO: [email protected]
    FROM: [your-name] <[email protected]>
    SUBJECT: [your-name]

    MESSAGE BODY:

    From: [your-name] <[your-email]>
    Municipality: [municipality]
    Town: ???????

    Also I want to include the your-townofBarcelona or your-townofMadrid in the message body of the email (taking into account the case that is given).

    I want to mention that this form will eventually add another 51 municipalities and other 8K of cities.

    So how to include this Towns too?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Unable to send email with conditional fields’ is closed to new replies.