WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
Clearing the fields - WHY?? (2 posts)

  1. JeanJensenDK
    Member
    Posted 11 months ago #

    I have this in my form, and when I hit the [+] or [-], all the above fields are being emptyed - why? And how to get around this?

    You can se the form live here.

    <div>
    <table width="470" border="0">
      <tr>
        <th scope="row">Navn&nbsp;</th>
        <td>&nbsp;[text* navn 15/]</td>
      </tr>
      <tr>
        <th scope="row">Firma&nbsp;</th>
        <td>&nbsp;[text* firma 15/]</td>
      </tr>
      <tr>
        <th scope="row">Telefon&nbsp;</th>
        <td>&nbsp;[text* telefon 15/]</td>
      </tr>
      <tr>
        <th scope="row">Email&nbsp;</th>
        <td>&nbsp;[email* email 15/]</td>
      </tr>
    </table>
    </div>
    <hr />
    <div>
    <div style="float:left; width:470px;">
    <h2>Flytter <u>fra</u></h2><br />
    
    <table width="470" border="0">
      <tr>
        <th width="200" scope="row">Boligtype I&nbsp;</th>
        <td width="200">&nbsp;[select flyt-fra-bolig2 "Kælder" "Stueplan" "1 etage" "2 etager" "3 etager" "4 etager" "5 etager" "Flere etager"]</td>
      </tr>
      <tr>
        <th width="200" scope="row">Antal m&sup2;&nbsp;</th>
        <td width="200">&nbsp;[text fra-m2 15/]</td>
      </tr>
      <tr>
        <th width="200" scope="row">Afstand fra dør til parkering&nbsp;</th>
        <td width="200">&nbsp;[select fra-p-afstand "0-5 meter" "5-10 meter" "10-20 meter" "20-50 meter" "50-100 meter" "Mere end 100 meter"]</td>
      </tr>
      <tr>
        <th width="200" scope="row">Adresse&nbsp;</th>
        <td width="200">&nbsp;[text fra-adresse 15/]</td>
      </tr>
      <tr>
        <th width="200" scope="row">Etage&nbsp;</th>
        <td width="200">&nbsp;[select fra-etage "Gadeplan" "1. sal" "2. sal" "3. sal" "4. sal" "5. sal" "6. sal" "7. sal" "8. sal" "9. sal" "10. sal" "11. sal" "12. sal" "13. sal" "14. sal" "15. sal" "16. sal" "17. sal" "18. sal" "19. sal" "20. sal"]</td>
      </tr>
      <tr>
        <th width="200" scope="row">Elevator&nbsp;</th>
        <td width="200">&nbsp;[select fra-elevator include_blank "Ja" "Nej"]</td>
      </tr>
      <tr>
        <th width="200" scope="row">Postnr. og by&nbsp;</th>
        <td width="200">&nbsp;[text fra-by 15/]</td>
      </tr>
      <tr>
        <th width="200" scope="row">Land&nbsp;</th>
        <td width="200">&nbsp;[select fra-land "Danmark" "Albanien" "Andorra" "Belarus" "Belgien" "Bosnien" "Bulgarien" "England" "Estland" "Finland" "Frankrig" "Grækenland" "Holland" "Irland" "Island" "Italien" "Kosovo" "Kroatien" "Letland" "Liechtenstein" "Litauen" "Luxembourg" "Malta" "Markedonien" "Moldavien" "Monaco" "Montenegro" "Norge" "Polen" "Portugal" "Rumænien" "San Marino" "Scotland" "Serbien" "Slovakiet" "Slovenien" "Spanien" "Sverige" "Sweitz" "Tjekkiet" "Tyskland" "Ukraine" "Ungarn" "Vertikanet" "Wales" "Østrig"]</td>
      </tr>
    </table>
    </div>
    
    <div style="float:left; width:470px;">
    <h2>Flytter <u>til</u></h2><br />
    
    <table width="470" border="0">
      <tr>
        <th width="200" scope="row">Boligtype I&nbsp;</th>
        <td width="200">&nbsp;[select flyt-til-bolig2 "Kælder" "Stueplan" "1 etage" "2 etager" "3 etager" "4 etager" "5 etager" "Flere etager"]</td>
      </tr>
      <tr>
        <th width="200" scope="row">Antal m&sup2;&nbsp;</th>
        <td width="200">&nbsp;[text til-m2 15/]</td>
      </tr>
      <tr>
        <th width="200" scope="row">Afstand fra dør til parkering&nbsp;</th>
        <td width="200">&nbsp;[select til-p-afstand "0-5 meter" "5-10 meter" "10-20 meter" "20-50 meter" "50-100 meter" "Mere end 100 meter"]</td>
      </tr>
      <tr>
        <th width="200" scope="row">Adresse&nbsp;</th>
        <td width="200">&nbsp;[text til-adresse 15/]</td>
      </tr>
      <tr>
        <th width="200" scope="row">Etage&nbsp;</th>
        <td width="200">&nbsp;[select til-etage "Gadeplan" "1. sal" "2. sal" "3. sal" "4. sal" "5. sal" "6. sal" "7. sal" "8. sal" "9. sal" "10. sal" "11. sal" "12. sal" "13. sal" "14. sal" "15. sal" "16. sal" "17. sal" "18. sal" "19. sal" "20. sal"]</td>
      </tr>
      <tr>
        <th width="200" scope="row">Elevator&nbsp;</th>
        <td width="200">&nbsp;[select til-elevator include_blank "Ja" "Nej"]</td>
      </tr>
      <tr>
        <th width="200" scope="row">Postnr. og by&nbsp;</th>
        <td width="200">&nbsp;[text til-by 15/]</td>
      </tr>
      <tr>
        <th width="200" scope="row">Land&nbsp;</th>
        <td width="200">&nbsp;[select til-land "Danmark" "Albanien" "Andorra" "Belarus" "Belgien" "Bosnien" "Bulgarien" "England" "Estland" "Finland" "Frankrig" "Grækenland" "Holland" "Irland" "Island" "Italien" "Kosovo" "Kroatien" "Letland" "Liechtenstein" "Litauen" "Luxembourg" "Malta" "Markedonien" "Moldavien" "Monaco" "Montenegro" "Norge" "Polen" "Portugal" "Rumænien" "San Marino" "Scotland" "Serbien" "Slovakiet" "Slovenien" "Spanien" "Sverige" "Sweitz" "Tjekkiet" "Tyskland" "Ukraine" "Ungarn" "Vertikanet" "Wales" "Østrig"]</td>
      </tr>
    </table>
    </div>
    <div style="clear:both;"></div>
    </div>
    <hr />
    <div>
    <table width="500" border="0">
      <tr>
        <th width="200" scope="row">Flyttedato&nbsp;</th>
        <td>&nbsp;[select fra-dato-dag include_blank "01" "02" "03" "04" "05" "06" "07" "08" "09" "10" "11" "12" "13" "14" "15" "16" "17" "18" "19" "20" "21" "22" "23" "24" "25" "26" "27" "28" "29" "30" "31"]&nbsp;[select fra-dato-md include_blank "Januar" "Febuar" "Marts" "April" "Maj" "Juni" "Juli" "August" "September" "Oktober" "November" "December"]&nbsp;[select fra-dato-aar include_blank "2013" "2014" "2015" "2016" "2017" "2018" "2019" "2020" "2021" "2022"]</td>
        </tr><tr>
    	<th width="200" scope="row">Alternativ dato&nbsp;</th>
        <td>&nbsp;[select alt-dato-dag include_blank "01" "02" "03" "04" "05" "06" "07" "08" "09" "10" "11" "12" "13" "14" "15" "16" "17" "18" "19" "20" "21" "22" "23" "24" "25" "26" "27" "28" "29" "30" "31"]&nbsp;[select alt-dato-md include_blank "Januar" "Febuar" "Marts" "April" "Maj" "Juni" "Juli" "August" "September" "Oktober" "November" "December"]&nbsp;[select alt-dato-aar include_blank "2013" "2014" "2015" "2016" "2017" "2018" "2019" "2020" "2021" "2022"]</td>
      </tr>
    </table>
    </div>
    <hr />
    <div>
    <table width="100%" border="0" cellspacing="0">
      <tr>
        <th width="200" scope="row">Antal flyttekasser&nbsp;</th><td>[text flyttekasser 4/]</td></tr></table>Hvis du er i tvivl om, hvor mange flyttekasser du egentlig skal<br />bruge, kan du prøve flyttekasseberegneren<br />- i mere end 95 % af vores tilbudsafgivninger, passer beregningen!<br /><br /><a href="#" onClick="javascript:window.open('/flyttekasseberegneren.php','Popup','width=700,height=470,statusbar=no,menubar=no')"><img src="http://flytteforretning.dk/wp-content/uploads/2013/03/flyttekasseberegner.jpg" title="Prøv Flyttekasseberegneren!" /></a>
    </div>
    <hr />
    <div>
    <h2>Angiv her antal i hvert felt:</h2>
    <div id="moeblerleft" style="width: 224px; margin-right:18px; float: left;">
    <table width="100%" border="0" cellspacing="0">
      <tr>
        <th scope="row">Skriveborde: &nbsp;</th>
        <td><input type="image" src="http://flytteforretning.dk/wp-content/uploads/2013/06/formular-minus-knap.jpg" id="minus" value="-" onClick="Skriveborde.value = (Skriveborde.value-1)" class="formular-minus-knap"><input type="text" id="Skriveborde" name="Skriveborde" value="0" size="1" /><input type="image" src="http://flytteforretning.dk/wp-content/uploads/2013/06/formular-plus-knap.jpg" value="+" onClick="Skriveborde.value = (+Skriveborde.value+1)" class="formular-plus-knap"></td>
      </tr>
      <tr>
        <th scope="row">Sideborde:&nbsp;</th>
        <td><input type="image" src="http://flytteforretning.dk/wp-content/uploads/2013/06/formular-minus-knap.jpg" id="minus" value="-" onClick="Sideborde.value = (Sideborde.value-1)" class="formular-minus-knap"><input type="text" id="Sideborde" name="Sideborde" value="0" size="1" /><input type="image" src="http://flytteforretning.dk/wp-content/uploads/2013/06/formular-plus-knap.jpg" value="+" onClick="Sideborde.value = (+Sideborde.value+1)" class="formular-plus-knap"></td>
      </tr>
      <tr>
        <th scope="row">Reoler:&nbsp;</th>
        <td><input type="image" src="http://flytteforretning.dk/wp-content/uploads/2013/06/formular-minus-knap.jpg" id="minus" value="-" onClick="Reoler.value = (Reoler.value-1)" class="formular-minus-knap"><input type="text" id="Reoler" name="Reoler" value="0" size="1" /><input type="image" src="http://flytteforretning.dk/wp-content/uploads/2013/06/formular-plus-knap.jpg" value="+" onClick="Reoler.value = (+Reoler.value+1)" class="formular-plus-knap"></td>
      </tr>
      <tr>
        <th scope="row">M&oslash;deborde: &nbsp;</th>
        <td><input type="image" src="http://flytteforretning.dk/wp-content/uploads/2013/06/formular-minus-knap.jpg" id="minus" value="-" onClick="moedeborde.value = (moedeborde.value-1)" class="formular-minus-knap"><input type="text" id="moedeborde" name="moedeborde" value="0" size="1" /><input type="image" src="http://flytteforretning.dk/wp-content/uploads/2013/06/formular-plus-knap.jpg" value="+" onClick="moedeborde.value = (+moedeborde.value+1)" class="formular-plus-knap"></td>
      </tr>
    </table>
    </div>
    <div id="moeblerleft" style="width: 224px; margin-right:18px; float: left;">
    <table width="100%" border="0" cellspacing="0">
      <tr>
        <th scope="row">Lamper:&nbsp;</th>
        <td><input type="image" src="http://flytteforretning.dk/wp-content/uploads/2013/06/formular-minus-knap.jpg" id="minus" value="-" onClick="Lamper.value = (Lamper.value-1)" class="formular-minus-knap"><input type="text" id="Lamper" name="Lamper" value="0" size="1" /><input type="image" src="http://flytteforretning.dk/wp-content/uploads/2013/06/formular-plus-knap.jpg" value="+" onClick="Lamper.value = (+Lamper.value+1)" class="formular-plus-knap"></td>
      </tr>
      <tr>
        <th scope="row">Billeder:&nbsp;</th>
        <td><input type="image" src="http://flytteforretning.dk/wp-content/uploads/2013/06/formular-minus-knap.jpg" id="minus" value="-" onClick="Billeder.value = (Billeder.value-1)" class="formular-minus-knap"><input type="text" id="Billeder" name="Billeder" value="0" size="1" /><input type="image" src="http://flytteforretning.dk/wp-content/uploads/2013/06/formular-plus-knap.jpg" value="+" onClick="Billeder.value = (+Billeder.value+1)" class="formular-plus-knap"></td>
      </tr>
      <tr>
        <th scope="row">PC'ere(inkl. sk&aelig;rm):&nbsp;</th>
        <td><input type="image" src="http://flytteforretning.dk/wp-content/uploads/2013/06/formular-minus-knap.jpg" id="minus" value="-" onClick="PCere.value = (PCere.value-1)" class="formular-minus-knap"><input type="text" id="PCere" name="PCere" value="0" size="1" /><input type="image" src="http://flytteforretning.dk/wp-content/uploads/2013/06/formular-plus-knap.jpg" value="+" onClick="PCere.value = (+PCere.value+1)" class="formular-plus-knap"></td>
      </tr>
      <tr>
        <th scope="row">Stole:&nbsp;</th>
        <td><input type="image" src="http://flytteforretning.dk/wp-content/uploads/2013/06/formular-minus-knap.jpg" id="minus" value="-" onClick="Stole.value = (Stole.value-1)" class="formular-minus-knap"><input type="text" id="Stole" name="Stole" value="0" size="1" /><input type="image" src="http://flytteforretning.dk/wp-content/uploads/2013/06/formular-plus-knap.jpg" value="+" onClick="Stole.value = (+Stole.value+1)" class="formular-plus-knap"></td>
      </tr>
    </table>
    </div>
    <div id="moeblerleft" style="width: 224px; margin-right:18px; float: left;">
    <table width="100%" border="0" cellspacing="0">
      <tr>
        <th scope="row">Billard:&nbsp;</th>
        <td><input type="image" src="http://flytteforretning.dk/wp-content/uploads/2013/06/formular-minus-knap.jpg" id="minus" value="-" onClick="Billard.value = (Billard.value-1)" class="formular-minus-knap"><input type="text" id="Billard" name="Billard" value="0" size="1" /><input type="image" src="http://flytteforretning.dk/wp-content/uploads/2013/06/formular-plus-knap.jpg" value="+" onClick="Billard.value = (+Billard.value+1)" class="formular-plus-knap"></td>
      </tr>
      <tr>
        <th scope="row">Hylde meter arkiv:&nbsp;</th>
        <td><input type="image" src="http://flytteforretning.dk/wp-content/uploads/2013/06/formular-minus-knap.jpg" id="minus" value="-" onClick="Hyldemeterarkiv.value = (Hyldemeterarkiv.value-1)" class="formular-minus-knap"><input type="text" id="Hyldemeterarkiv" name="Hyldemeterarkiv" value="0" size="1" /><input type="image" src="http://flytteforretning.dk/wp-content/uploads/2013/06/formular-plus-knap.jpg" value="+" onClick="Hyldemeterarkiv.value = (+Hyldemeterarkiv.value+1)" class="formular-plus-knap"></td>
      </tr>
      <tr>
        <th scope="row">Kopimaskiner:&nbsp;</th>
        <td><input type="image" src="http://flytteforretning.dk/wp-content/uploads/2013/06/formular-minus-knap.jpg" id="minus" value="-" onClick="Kopimaskiner.value = (Kopimaskiner.value-1)" class="formular-minus-knap"><input type="text" id="Kopimaskiner" name="Kopimaskiner" value="0" size="1" /><input type="image" src="http://flytteforretning.dk/wp-content/uploads/2013/06/formular-plus-knap.jpg" value="+" onClick="Kopimaskiner.value = (+Kopimaskiner.value+1)" class="formular-plus-knap"></td>
      </tr>
      <tr>
        <th scope="row">Arkiv skabe/reoler:&nbsp;</th>
        <td><input type="image" src="http://flytteforretning.dk/wp-content/uploads/2013/06/formular-minus-knap.jpg" id="minus" value="-" onClick="Arkivskabereoler.value = (Arkivskabereoler.value-1)" class="formular-minus-knap"><input type="text" id="Arkivskabereoler" name="Arkivskabereoler" value="0" size="1" /><input type="image" src="http://flytteforretning.dk/wp-content/uploads/2013/06/formular-plus-knap.jpg" value="+" onClick="Arkivskabereoler.value = (+Arkivskabereoler.value+1)" class="formular-plus-knap"></td>
      </tr>
    </table>
    </div>
    <div id="moeblerleft" style="width: 224px; float: left;">
    <table width="100%" border="0" cellspacing="0">
      <tr>
        <th scope="row">Main frames: &nbsp;</th>
        <td><input type="image" src="http://flytteforretning.dk/wp-content/uploads/2013/06/formular-minus-knap.jpg" id="minus" value="-" onClick="Mainframes.value = (Mainframes.value-1)" class="formular-minus-knap"><input type="text" id="Mainframes" name="Mainframes" value="0" size="1" /><input type="image" src="http://flytteforretning.dk/wp-content/uploads/2013/06/formular-plus-knap.jpg" value="+" onClick="Mainframes.value = (+Mainframes.value+1)" class="formular-plus-knap"></td>
      </tr>
      <tr>
        <th scope="row">Pengeskabe:&nbsp;</th>
        <td><input type="image" src="http://flytteforretning.dk/wp-content/uploads/2013/06/formular-minus-knap.jpg" id="minus" value="-" onClick="Pengeskabe.value = (Pengeskabe.value-1)" class="formular-minus-knap"><input type="text" id="Pengeskabe" name="Pengeskabe" value="0" size="1" /><input type="image" src="http://flytteforretning.dk/wp-content/uploads/2013/06/formular-plus-knap.jpg" value="+" onClick="Pengeskabe.value = (+Pengeskabe.value+1)" class="formular-plus-knap"></td>
      </tr>
      <tr>
        <th scope="row">Maskiner:&nbsp;</th>
        <td><input type="image" src="http://flytteforretning.dk/wp-content/uploads/2013/06/formular-minus-knap.jpg" id="minus" value="-" onClick="Maskiner.value = (Maskiner.value-1)" class="formular-minus-knap"><input type="text" id="Maskiner" name="Maskiner" value="0" size="1" /><input type="image" src="http://flytteforretning.dk/wp-content/uploads/2013/06/formular-plus-knap.jpg" value="+" onClick="Maskiner.value = (+Maskiner.value+1)" class="formular-plus-knap"></td>
      </tr>
    </table>
    </div>
    <div style="clear:both;"></div>
    </div>
    <div>
    <div style="width:960px;">
    Andet:<br />
    [textarea tingkasse]
    <hr />
    <table width="900" border="0">
      <tr>
        <th width="230" scope="row">Kan der bruges flyttehejs?&nbsp;</th>
        <td>[select flyttehejs "Det ved jeg ikke" "Ja helt sikkert" "M&aring;ske" "Nej"]&nbsp;</td>
      </tr>
      <tr>
        <th width="230" scope="row">Hvem pakker ned?&nbsp;</th>
        <td>[select pakkerned "Jeg pakker selv indboet ned!" "Mosgaard pakker alt ned!"]&nbsp;</td>
      </tr>
      <tr>
        <th width="230" scope="row">Hj&aelig;lper du selv med til flytningen?&nbsp;</th>
        <td>[select hvemflytter "Nej..." "Ja, 1 person" "Ja, 2 personer" "Ja, 3 personer" "Ja, 4 personer" "Ja, 5 personer" "Ja, 6 personer" "Ja, 7 eller flere"]&nbsp;</td>
      </tr>
     </table>
    <hr />
    <table>
     <tr>
        <th width="230" scope="row">&Oslash;nsker du lager/opbevaring?&nbsp;</th>
        <td>[select opbevaring "Ja tak, jeg &oslash;nsker lager/opbevaring" "Nej, jeg &oslash;nsker ikke lager/opbevaring!"]&nbsp;</td>
      </tr>
    </table>
    Hvis Ja til lager/opbevaring, anf&oslash;r da her hvor meget og hvor l&aelig;nge...<br />[textarea lager]
    </div>
    <br />
    [submit "Send tilbudsforesp&oslash;rgsel"]
    
    </div>

    http://wordpress.org/plugins/contact-form-7/

  2. JeanJensenDK
    Member
    Posted 11 months ago #

    Moved higher up the ladder...

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.