We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17720
    • 21 Posts
    Hello the selectbox on my eform is having troble validating the message i receive is:
    Some errors were detected in your form:
    The following required field(s) are missing: Province


    I am a web designer new to forms and fairly new to Modx. I have read the documentation.
    perhaps i have the wrong
    field_name:field_description:field_datatype:field_required

    My code is below:

    <p class="error ">[+validationmessage+]</p>
    <form id="ms_form" method="post" action="[~[*id*]~]" name="meals_form">
    <p><em>*</em> <strong>Denotes a required field</strong></p>
    <!-- <label for="date">Date of Application:</label>-->
    <label for="name" >Team name:</label>

    <input type="text" id="team_name" name="team_name" value="" eform="team name:string:1:" />
    <em>*</em>


    <label for="comp_name" >Group or company name:</label>

    <input type="text" id="comp_name" name="comp_name" value="" eform="Company name:string:1:" />
    <em>*</em>


    <label for="comp_phone">Phone:</label>

    <input type="text" id="comp_phone" name="comp_phone" value="" eform="Company phone::1:" />
    <em>*</em>


    <label for="web_address">Website:</label>

    <input type="text" id="web_address" name="web_address" value="" eform="Company website::1:" />
    <em>*</em>


    <label for="comp_email">Email:</label>

    <input type="text" id="comp_email" name="comp_email" value="" eform="Company email:email:1:" />
    <em>*</em>


    <label for="comp_address">Address:</label>

    <input type="text" id="comp_add" name="comp_add" value="" eform="Company address:string:1:" />
    <em>*</em>


    <label for="comp_city">City:</label>

    <input type="text" id="comp_city" name="comp_city" value="" eform="Company city:string:1:" />
    <em>*</em>

    <label for="province">Province:</label>

    <select id="province" name="Province []" eform="::1::" />
    <option value="" selected="selected">Select a province</option>
    <option value="Alberta" name="AB" ">Alberta</option>
    <option value="British Columbia" name="BC">British Columbia</option>
    <option value="Manitoba" name="MB">Manitoba</option>
    <option value="New Brunswick" name="NB">New Brunswick</option>
    <option value="Newfoundland and Labrador" name="NL">Newfoundland and Labrador</option>
    <option value="Northwest Territories" name="NT">Northwest Territories</option>
    <option value="Nova Scotia" name="NS">Nova Scotia</option>
    <option value="Nunavut" name="NU">Nunavut</option>
    <option value="Ontario" name="ON">Ontario</option>
    <option value="Prince Edward Island" name="PE">Prince Edward Island</option>
    <option value="Quebec" name="QC">Quebec</option>
    <option value="Saskatchewan" name="SK">Saskatchewan</option>
    <option value="Yukon" name="YT">Yukon</option>
    </select >

    <em>*</em>



    <label for="name" >Primary contact name:</label>

    <input type="text" id="ms_name" name="ms_name" value="" eform="Primary Contact::1:" />
    <em>*</em>



    <label for="email">Email address:</label>


    <input type="text" id="ms_email" name="ms_email" value="" eform="Email address:email:1:" />
    <em>*</em>



    <label for="past_volunteer" class="textarea">
    Has your group volunteered previously at The SEED?</label>

    <input type="radio" id="before" class="radio" name="past_volunteer" value="yes" eform="Past volunteer::1:"/>
    yes
    <input type="radio" id="not_before" class="radio" name="past_volunteer" value="no" />
    no


    <p><label for="ms_location" class="textarea">Location you would like to volunteer at:</label>

    <input type="radio" id="centre" class="radio" name="ms_location" value="centre_street" eform="location desired::1:"/>
    SEED Centre Street
    <input type="radio" id="foothills" class="radio" name="ms_location" value="foothills_shelter" />
    SEED Foothills Shelter
    </p>
    <p><label for="tours" class="textarea">Interest in program or facility tour: (Tours take between 45 minutes to an hour to complete.)</label>

    <input type="radio" id="tour_before" class="radio" name="tours" value="tour_before" eform="tour requested::0:"/>
    Interested before volunteering
    <input type="radio" id="tour_after" class="radio" name="tours" value="tour_after"/>
    Interested after volunteering
    </p>


    <p>Please let us know your availability:<em>*</em>

    <label for="availability">Primary Dates:</label>

    <input type="text" id="ms_availability" name="ms_availability" value="" eform="Availabilty dates::1:"/>


    <label for="Secondary_availability">Secondary Dates:</label>

    <input type="text" id="ms_second_availability" name="ms_second_availability" value="" eform="Secondary availability dates::0:" />
    </p>

    <p>
    <label for="age" class="textarea">Please let us know the
    number of the volunteers in each age group:</label>
    <em>*</em>

    <label for="age12plus">12 - 15 years</label>
    <input type="text" id="age_12-15" name="age12plus" value="" eform="Various Age groups::1:"/>


    <label for="age16plus">16 - 18 years</label>
    <input type="text" id="age_16-18" name="age16plus" value="" />


    <label for="age18plus">18 years</label>
    <input type="text" id="age_18over" name="age18plus" value="" />
    <div align="left">We require that groups provide a supervision ration of 1 adult for every 3 youth participating in group volunteer opportunities.</div>


    <h4><strong>page two will explain meal sponsorship opportunities</h4>


    <p><input type="submit" name="continue" value="continue to next page" class="hand" />
    </p>
    </form>
    ----------------------------------

    Thank you,

    Lisa