Skip to main content

I am trying to add multiple choice questions to my form but am not sure what HTML code to put into the confirmation so it feeds the multiple answers into the data extension and multiple answers appear on the data extension with the answers rather than just 1?

11 respuestas
  1. Mateusz Dąbrowski (mateuszdabrowski.pl) Forum Ambassador
    4 feb 2022, 15:42

    Ok, so the main issue is that you are missing a name attribute. So in each select, apart from id="xx" you should also add name="xx". For example:

    <div>

    <select name="eventdate" id="eventdate" multiple=>

    <option value="Thursday 10th March">Thursday 10th March</option>

    <option value="Friday 11th March">Friday 11th March</option>

    <option value="Monday 14th March">Monday 14th March</option>

    <option value="Tuesday 15th March">Tuesday 15th March</option>

    <option value="Wednesday 16th March">Wednesday 16th March</option>

    <option value="Thursday 17th March">Thursday 17th March</option>

    <option value="Friday 18th March">Friday 18th March</option>

    </select>

    </div>

    <div style="font-size:14px">So that we can tailor the training material to you (you can select more than one) </div>

    <div>

    <select name="answer1" id="answer1" multiple>

    <option value="Thermostatic Mixer Showers">Thermostatic Mixer Showers</option>

    <option value="Taps">Taps</option>

    <option value="Bar showers">Bar showers</option>

    <option value="Wallmount 12">Wallmount 12</option>

    <option value="Water Systems">Water Systems</option>

    </select>

    </div>

    <div style="font-size:14px">Fancy an extra entry into the prize draw? Let us know if you’re interested a trade morning.

    </div>

    <div>

    <select name="answer2" id="answer2" name="answer2">

    <option value=" "> </option>

    <option value="yes">yes</option>

    <option value="no">no</option>

    </select>

    </div>

    This should output for example: 

    eventdate=Thursday 10th March&eventdate=Monday 14th March 
0/9000