We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30086
    • 110 Posts
    hi
    I’m having problems with this.
    I can’t complete a form after clicking the submit because it says that the combo box is incorrect value.

    Can someone help me please?

    Thanks

    Btw: here is the code:
    <div style="background-color:#CCDFED">
    <form method="post" action="[~[*id*]~]">
        <input type="hidden" name="formid" value="registrationForm" />
    	<table>  
        
    	<tr>
            <td><label for="title" style="margin:0.5em">Title:</label></td>
            <td>
           <select name="title" style="width:80px" eform="Title::1" >
    	   <option>Mr.</option>
           <option>Mrs.</option>
           <option>Miss</option>
    	   <option>Dr.</option>       
    	   </select>
    	   </td>
    	</tr> 
    </table>
        
    </form>
    </div>
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Your option elements should have a value attribute.

      From the original documentation example:
      <label>Language</label>
                  <select name="language" eform="language::1>
                      <option value=""></option>
                      <optgroup label="English">
                          <option value="en-au">Australian</option>
                          <option value="en-gb">UK English</option>
                          <option value="en-us">US English</option>
                      </optgroup>
                      <optgroup label="French">
                          <option value="fr">France</option>
                          <option value="fr-be">Belgian French</option>
                          <option value="fr-ca">Canadien French</option>
                          <option value="fr-ch">Swiss French</option>
                          <option value="fr-gp">Guadaloupe French</option>
                          <option value="fr-gy">Guyana French</option>
                          <option value="fr-mr">Martinique French</option>
                      </optgroup>
                  </select>
      
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 30086
        • 110 Posts
        thanks sottwell. Now it’s working:) smiley