Until now I could outsmart the automatically generated html code for the input fields of type checkbox or radio like that:
This worked because I simulated the output of the input tag as if I used opt_values="... | ... | ...", but actually leaving this option enpty: opt_values="".
Now I want to store the form in the db with DataBound Forms, not only send an e-mail. Unfortunately this is no longer possible, since either CouchCMS produces the input fields itself, or they are not stored.
Is there a Hack of CouchCMS that prevents Couch from generating the Code? I have specially styled checkbox and radio inputs that look like the attached image. It is not possible to use the generated code from Couch.
- Code: Select all
<div class="col-xs-12">
<cms:input type="radio" name="gebaeudetyp" opt_values="" id="gebaeudetyp" class="ignore" />
<div class="row g_div">
<div class="col-xs-6 col-sm-3">
<input id="gebaeudetyp0" type="radio" name="gebaeudetyp" value="Privathaus" />
<label for="gebaeudetyp0" class="g_label"><img src="<cms:show k_site_link />/media/image/generator/gebaeudetyp_privat_1.jpg" class="g_image"><h4 class="g_image_label">Privathaus</h4></label>
</div>
<div class="col-xs-6 col-sm-3">
<input id="gebaeudetyp1" type="radio" name="gebaeudetyp" value="Stockwerk-Eigentum" />
<label for="gebaeudetyp1" class="g_label"><img src="<cms:show k_site_link />/media/image/generator/gebaeudetyp_stockwerk_2.jpg" class="g_image" alt=""><h4 class="g_image_label">Wohnung</h4></label>
</div>
<div class="col-xs-6 col-sm-3">
<input id="gebaeudetyp2" type="radio" name="gebaeudetyp" value="Gewerbeobjekt" />
<label for="gebaeudetyp2" class="g_label"><img src="<cms:show k_site_link />/media/image/generator/gebaeudetyp_gewerbe_3.jpg" class="g_image" alt=""><h4 class="g_image_label">Gewerbeobjekt</h4></label>
</div>
<div class="col-xs-6 col-sm-3">
<input id="gebaeudetyp3" type="radio" name="gebaeudetyp" value="Anderes" />
<label for="gebaeudetyp3" class="g_label"><img src="<cms:show k_site_link />/media/image/generator/weiss_nicht.jpg" class="g_image" alt=""><h4 class="g_image_label">Anderes</h4></label>
</div>
</div>
</div>
This worked because I simulated the output of the input tag as if I used opt_values="... | ... | ...", but actually leaving this option enpty: opt_values="".
Now I want to store the form in the db with DataBound Forms, not only send an e-mail. Unfortunately this is no longer possible, since either CouchCMS produces the input fields itself, or they are not stored.
Is there a Hack of CouchCMS that prevents Couch from generating the Code? I have specially styled checkbox and radio inputs that look like the attached image. It is not possible to use the generated code from Couch.