Forums

Form broken

benbeek 02 May, 2014
With the last save of a form that was 99.9% complete, the form now is stored in a meshed-up way. Most element have become part of another element and the Events / Form settings / Legend tabs now all display an empty screen.

Can this form be repaired?

Regards,
Ben.
GreyHead 02 May, 2014
Hi Ben,

This looks like CFv4, the most likely cause is either using double quotes "" in a Formatted text element; or an unclosed <div> (or some other tag) in one of the custom elements. Could either of these be causing the problem?

Bob
benbeek 02 May, 2014
I did not use any <div> myself in the form, but the CF4 code is full of <div>s by itself when I view the code tab in the forms manager.
The last thing I did was editing a simple text part that you can see in: id2_container_div.
I only edited 'Soort en Status Ticket' into 'Soort en Status eTicket', then saved and then the form broke.

Ben.


<div class="ccms_form_element cfdiv_header" id="id1_container_div" style=""><table width="100%"><tbody>
<tr><td align="center"><h3>Wees voorzichtig met aanpassingen</h3></td></tr>
<tr><td align="center">U dient, waar van toepassing, zelf te zorgen voor de samenhang met de factuur in ccInvoices.</td></tr>
</tbody></table>
<br /><div class="clear"></div></div>
<div class="ccms_form_element cfdiv_header" id="id2_container_div" style=""><br /><table width="100%"><tbody><tr>
<td bgcolor="E4E4E4" align="center">
<h4>Soort en Status eTicket</h4>
</td></tr></tbody></table><div class="clear"></div></div>
<div class="clear"></div><div class="ccms_form_element cfdiv_select" id="soort1_container_div" style=""><label>Soort eTicket</label><select size="1" class="" title="" name="soort">
<option value="A">Algemeen</option>
<option value="G">Gast</option>
<option value="L">Losse Verkoop</option>
<option value="V">Vriend</option>
</select>
<div class="clear"></div><div id="error-message-soort"></div></div><div class="ccms_form_element cfdiv_select" id="afgerond1_container_div" style=""><label>Status eTicket</label><select size="1" class="" title="" name="afgerond">
<option value="J">Order afgerond: Geldig</option>
<option value="N">Order afgebroken: Ongeldig</option>
<option value="V">Vervallen verklaard</option>
</select>
<div class="clear"></div><div id="error-message-afgerond"></div></div><div class="ccms_form_element cfdiv_text" id="memo1_container_div" style=""><label>Memorandum</label><input maxlength="255" size="70" class="" title="" type="text" value="" name="memo" />
<div class="clear"></div><div id="error-message-memo"></div></div>
<div class="ccms_form_element cfdiv_header" id="id3_container_div" style=""><br /><table width="100%"><tbody><tr>
<td bgcolor="E4E4E4" align="center">
<h4>Gegevens Koper</h4>
</td></tr></tbody></table><div class="clear"></div></div>
<div class="ccms_form_element cfdiv_text multiline_start" id="userid1_container_div" style=""><label>User nummer*</label><input maxlength="20" size="10" class=" validate['required']" title="" type="text" value="" name="userid" />
<div class="clear"></div><div id="error-message-userid"></div></div><div class="ccms_form_element cfdiv_submit multiline_add" id="submit1_container_div" style="text-align:left"><input name="submit" class="cwbutton" value="Ververs" type="submit" />
<div class="clear"></div><div id="error-message-submit"></div></div><div class="ccms_form_element cfdiv_textarea label_over multiline_add" id="kopernaw1_container_div" style=""><textarea cols="40" rows="4" class="" title="" name="kopernaw"></textarea>
<div class="clear"></div><div id="error-message-kopernaw"></div></div><div class="ccms_form_element cfdiv_header" id="id4_container_div" style=""><br /><table width="100%"><tbody><tr>
<td bgcolor="E4E4E4" align="center">
<h4>Facturering ( Factuurbedrag: {bedr} )</h4>
</td></tr></tbody></table><div class="clear"></div></div><div class="ccms_form_element cfdiv_text label_over multiline_start" id="aantvolw1_container_div" style=""><label>Volw</label><input maxlength="3" size="2" class=" validate['digit']" title="" type="text" value="" name="aantvolw" />
<div class="clear"></div><div id="error-message-aantvolw"></div></div><div class="ccms_form_element cfdiv_text label_over multiline_add" id="aantjeugd1_container_div" style=""><label>Jeugd</label><input maxlength="3" size="2" class=" validate['digit']" title="" type="text" value="" name="aantjeugd" />
<div class="clear"></div><div id="error-message-aantjeugd"></div></div><div class="ccms_form_element cfdiv_select label_over multiline_add" id="betwijze1_container_div" style=""><label>Betaling</label><select size="1" class="" title="" name="betwijze">
<option value="INCAS">Incasso</option>
<option value="IDEAL">iDEAL</option>
<option value="" selected="selected">n.v.t.</option>
</select>
<div class="clear"></div><div id="error-message-betwijze"></div></div><div class="ccms_form_element cfdiv_text label_over multiline_add" id="invoice1_container_div" style=""><label>Factuurnr</label><input maxlength="10" size="10" class="" title="" type="text" value="" name="invoice" />
<div class="clear"></div><div id="error-message-invoice"></div></div><div class="ccms_form_element cfdiv_text label_over multiline_add" id="iban1_container_div" style=""><label>Bank IBAN</label><input maxlength="18" size="20" class=" validate['alphanum']" title="" type="text" value="" name="iban" />
<div class="clear"></div><div id="error-message-iban"></div></div><div class="ccms_form_element cfdiv_text label_over multiline_add" id="machtid1_container_div" style=""><label>Machtigings ID</label><input maxlength="50" size="20" class="" title="" type="text" value="" name="machtid" />
<div class="clear"></div><div id="error-message-machtid"></div></div><div class="ccms_form_element cfdiv_header" id="id5_container_div" style=""><br /><table width="100%"><tbody><tr>
<td bgcolor="E4E4E4" align="center">
<h4>Tenaamstelling individuele tickets</h4>
</td></tr></tbody></table><div class="clear"></div></div><div class="ccms_form_element cfdiv_textarea" id="tenaam1_container_div" style=""><label>Namen op tickets<br />1 naam per regel</label><textarea cols="50" rows="5" class="" title="" name="tenaam"></textarea>
<div class="small-message">Neem eerst de namen van de volwassenen op, daarna de jeugdigen.</div><div class="clear"></div><div id="error-message-tenaam"></div></div><div class="ccms_form_element cfdiv_header" id="id6_container_div" style=""><br /><br /><div class="clear"></div></div><div class="ccms_form_element cfdiv_submit" id="submit2_container_div" style="text-align:left"><input name="submit" class="cwbutton" value="Gewijzigde gegevens opslaan" type="submit" />
<div class="clear"></div><div id="error-message-submit"></div></div><input type="hidden" value="" name="tid" />
<input type="hidden" value="" name="tnr" />
<input type="hidden" value="" name="ttl" />
<input type="hidden" value="" name="prijsvolw" />
<input type="hidden" value="" name="prijsjeugd" />
<input type="hidden" value="" name="bedr" />
<input type="hidden" value="" name="namen" />
<input type="hidden" value="" name="aantnamen" />
<input type="hidden" value="" name="wtxt" />
<input type="hidden" value="" name="koper" />
<input type="hidden" value="" name="adres" />
<input type="hidden" value="" name="email" />
<div class="ccms_form_element cfdiv_empty" id="empty_container_div" style=""><div class="clear"></div><div id="error-message-empty"></div></div>
benbeek 02 May, 2014
And the strange thing is that the form itself is working and displayed correct on the website, see image ... (?)
I only cannot edit it anymore.

Regards,
Ben
benbeek 05 May, 2014
No replies anymore :-(
Is there no way to repair this form?

Ben
benbeek 06 May, 2014
I was able to repair the form myself after all. Not with the use of the component itself, because the component ( in the form manager > code box ) did not show the error.

I went to the mysql database and opened the broken form in table ..._chronoforms. The layout code is stored in field wizardcode. Copied the code into Notepad++ and there I found one (1) qoute (as Bob expected) in the last entry that I made in the form. This qoute should not be there. A real typo. No closing qoute, of course, so there was the point the form was broken.
After deleting the quote and storing the edited code back into the wizardcode field, the form was ok again.

Ben.
GreyHead 06 May, 2014
Hi Ben,

It looks as though you may have several Formatted text elements that contain double quotes e.g.
  <br />
  <table width="100%">
    <tbody>
      <tr>
        <td bgcolor="E4E4E4" align="center">
          <h4>Tenaamstelling individuele tickets</h4>
        </td>
      </tr>
    </tbody>
  </table>

Please try using single quotes instead, or, better, use the Custom Element element from the Advanced Group.

Bob
This topic is locked and no more replies can be posted.