can not add new fields

Home Forums Quform PHP can not add new fields

This topic is: not resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #16465
    tscont
    Participant

    It’s probably something really minor… but having read the instructions and having tried dozens of times, I can’t seem to be able to add any new elements to the form… or, at least, I’m receiving an email with all the correct elements that were already there in the “file upload” page sample I began with, but no data whatsoever of the new elements I’m trying to introduce…

    I have added this to the html page (link http://www.triestecontemporanea.it/form/emergente2015.html ):

    <div class=”quform-group-row quform-group-row-2cols”>

    <!– Begin Date element –>
    <div class=”quform-element quform-element-date”>
    <div class=”quform-spacer”>
    <label for=”birthdate”>Date of birth <span class=”quform-required”>*</span></label>
    <div class=”quform-input”>
    <select name=”birthdate[day]”>
    <option value=””>Day</option>
    <option value=”1″>1</option>
    <option value=”2″>2</option>
    <option value=”3″>3</option>
    <option value=”4″>4</option>
    <option value=”5″>5</option>
    <option value=”6″>6</option>
    <option value=”7″>7</option>
    <option value=”8″>8</option>
    <option value=”9″>9</option>
    <option value=”10″>10</option>
    <option value=”11″>11</option>
    <option value=”12″>12</option>
    <option value=”13″>13</option>
    <option value=”14″>14</option>
    <option value=”15″>15</option>
    <option value=”16″>16</option>
    <option value=”17″>17</option>
    <option value=”18″>18</option>
    <option value=”19″>19</option>
    <option value=”20″>20</option>
    <option value=”21″>21</option>
    <option value=”22″>22</option>
    <option value=”23″>23</option>
    <option value=”24″>24</option>
    <option value=”25″>25</option>
    <option value=”26″>26</option>
    <option value=”27″>27</option>
    <option value=”28″>28</option>
    <option value=”29″>29</option>
    <option value=”30″>30</option>
    <option value=”31″>31</option>
    </select>
    <select name=”birthdate[month]”>
    <option value=””>Month</option>
    <option value=”1″>January</option>
    <option value=”2″>February</option>
    <option value=”3″>March</option>
    <option value=”4″>April</option>
    <option value=”5″>May</option>
    <option value=”6″>June</option>
    <option value=”7″>July</option>
    <option value=”8″>August</option>
    <option value=”9″>September</option>
    <option value=”10″>October</option>
    <option value=”11″>November</option>
    <option value=”12″>December</option>
    </select>
    <select name=”birthdate[year]”>
    <option value=””>Year</option>
    <option value=”1985″>1985</option>
    <option value=”1986″>1986</option>
    <option value=”1987″>1987</option>
    <option value=”1988″>1988</option>
    <option value=”1989″>1989</option>
    <option value=”1990″>1990</option>
    <option value=”1991″>1991</option>
    <option value=”1992″>1992</option>
    <option value=”1993″>1993</option>
    <option value=”1994″>1994</option>
    <option value=”1995″>1995</option>
    <option value=”1996″>1996</option>
    <option value=”1997″>1997</option>
    <option value=”1998″>1998</option>
    <option value=”1999″>1999</option>
    <option value=”2000″>2000</option>
    <option value=”2001″>2001</option>
    <option value=”2002″>2002</option>
    <option value=”2003″>2003</option>
    <option value=”2004″>2004</option>
    <option value=”2005″>2005</option>
    <option value=”2006″>2006</option>
    <option value=”2007″>2007</option>
    <option value=”2008″>2008</option>
    <option value=”2009″>2009</option>
    <option value=”2010″>2010</option>
    <option value=”2011″>2011</option>
    <option value=”2012″>2012</option>
    <option value=”2013″>2013</option>
    <option value=”2014″>2014</option>
    <option value=”2015″>2015</option>
    </select>
    </div>
    <p class=”quform-description”>You have to be born in 1985 or later to be eligible.</p>
    </div>
    </div>
    <!– End Date element –>

    <!– Begin Subject element –>
    <div class=”quform-element quform-element-select”>
    <div class=”quform-spacer”>
    <label for=”birthcountry”>Country of Birth</label>
    <div class=”quform-input”>
    <select class=”quform-tooltip” id=”birthcountry” name=”birthcountry”>
    <option value=”General enquiry”>Croatia</option>
    <option value=”Sales enquiry”>Italy</option>
    <option value=”Support enquiry”>Slovenia</option>
    </select>
    </div>
    </div>
    </div>
    <!– End Subject element –>

    </div>

    and this to the process-php file:

    $birthdate = new Quform_Element_Date(‘birthdate’, ‘Date of birth’);
    $birthdate->addValidators(array(‘required’, ‘date’));
    $form->addElement($birthdate);

    $birthcountry = new Quform_Element(‘birthcountry’, ‘Country of Birth’);
    $birthcountry->addFilter(‘trim’);
    $form->addElement($birthcountry);

    The form appears correctly but I can’t see anything in the emails I receive.
    Help! I’m sure there’s something I have missed, but can’t find out what.
    (and thank you in advance for the support!)

    #16475
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy