We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34849
    • 5 Posts
    Hello and sorry for my English wink

    I`m trying to make a simple ordering form with a little help from eform.

    I`m using multiple select menu powered by javascript from this site http://www.javascripttoolbox.com/lib/dynamicoptionlist/examples.php (last example) and it look like this:



    First column is written in HTML but second and third are generated dynamically by javascript.

    When I press submit button error occurs ;/


    My tpl:
    <p><span style="color:#900;">[+validationmessage+]</span></p>
                    <form method="post" action="[~[*id*]~]" enctype="multipart/form-data">
                      <input type="hidden" name="formid" value="zamowienia" /><table>
    <tbody><tr>
    	<th>Rodzaj</th><th>Model</th><th>Kolor</th>
    </tr>
    <tr style="vertical-align:top">
    	<td>
    	<select size="10"  multiple="" name="RODZAJ" class="selectbox one" eform="RODZAJ:string:1"  />
    		<option value="KUBEK">Kubek</option>
            <option value="KULA" selected="">Kula</option>
            <option value="FOTOKSIĄŻKA">Fotoksiążka</option></select>
    	</td>
        
    	<td>
    	<select size="5" multiple="" name="MODEL" class="selectbox two" eform="MODEL:string:1"  />
    	<script type="text/javascript">makeModel.printOptions("MODEL")</script>
        </select>
    	</td>
        
    	<td>
        <select size="6" multiple="" name="KOLOR" class="selectbox three" eform="KOLOR:string:1" />
    	<script type="text/javascript">makeModel.printOptions("KOLOR")</script>
        </select>
    	</td>
        </tr>
    
    </tbody></table>
    
    <input name="Bez wzoru" type="radio" value="Bez wzoru" checked />Bez wzoru
    <input name="Bez wzoru" type="radio" value="Bez wzoru" />Wzor1
    <input name="Bez wzoru" type="radio" value="Bez wzoru" />Wzor1
    <input name="Bez wzoru" type="radio" value="Bez wzoru" />Wzor1
    <input name="Bez wzoru" type="radio" value="Bez wzoru" />Wzor1
    
    
    <div id="button">
                      <p>
                        <input type="submit" value="Wyślij wiadomość" name="submit">
                      </p>
                      </div><!--button-->
    
    </div>
    </form>


    Simple report (for testing purposes)
    <p>Poniżej znajduje się treść napisana przez [+name+] za pomocą formularza kontaktowego:</p>
    <table>
    <tr valign="top"><td>Rodzaj:</td><td>[+RODZAJ+]</td></tr>
    <tr valign="top"><td>Model:</td><td>[+MODEL+]</td></tr>
    <tr valign="top"><td>KOLOR:</td><td>[+KOLOR+]</td></tr>
    
    </table>
    


    And eform call:
    [!eForm? &formid=`zamowienia` &to=`[email protected]` &tpl=`zamowienia`  &thankyou=`dzieki`  &subject=`Zamówienie` &report=`raport` !]



    I will be grateful for some help wink
    Best regards !
    Chris

    EDIT:
    When I`ve added eform="::0::#EVAL return true;" (foundend in other topic)

    Some errors were detected in your form:
    MODEL » Value not in list of permitted values
    KOLOR » Value not in list of permitted values
    appears