Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > BizForm Rendering Changes After Upgrading to 4.0 View modes: 
User avatar
Certified Developer 8
Certified Developer 8
bryan-bit-wizards - 3/3/2009 2:25:12 PM
   
BizForm Rendering Changes After Upgrading to 4.0
We have a BizForm with a custom form definition that we use on our site. Kentcio 3.1a would create the following HTML when rendered:

<tr>
<td class="[classname]">
<label for="ctl00_cphMain_BizForm1_BizFormNew_ctl00_ContactFirstName" id="ctl00_cphMain_BizForm1_BizFormNew_ctl00_ContactFirstName_FieldLabel"
class="EditingFormLabel">
First Name:</label>
</td>
<td class="[classname]">
<input name="ctl00$cphMain$BizForm1$BizFormNew$ctl00$ContactFirstName" type="text"
maxlength="20" id="ctl00_cphMain_BizForm1_BizFormNew_ctl00_ContactFirstName" /><br />
</td>
</tr>

This code is correct. However, after upgrading to Kentico 4.0 the system is now encapsualting the "input" tag with an additional "div":


<tr>
<td class="[classname]">
<label for="ctl00_cphMain_BizForm1_viewBiz_ctl00_ContactFirstName" id="ctl00_cphMain_BizForm1_viewBiz_ctl00_ContactFirstName_FieldLabel"
class="EditingFormLabel">
First Name:</label>
</td>
<td class="[classname]">
<div class="EditingFormControlNestedControl">
<input name="ctl00$cphMain$BizForm1$viewBiz$ctl00$ContactFirstName" type="text" maxlength="20"
id="ctl00_cphMain_BizForm1_viewBiz_ctl00_ContactFirstName" class="TextboxField" />
</div>
</td>
</tr>


This is causing our form to not be rendered correctly. Is it possible to disable this feature?


User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 3/12/2009 12:15:00 PM
   
RE:BizForm Rendering Changes After Upgrading to 4.0
Hi,

Unfortunatelly, this cannot be disabled, because since 4.0 version form fields are part of editing form control, which handles also other things.

However, I think that incorrect rendering is just a matter of CSS styling, so if you handle this DIV class and change your styling accordingly, it should render ok.

Could you please give some example or description what is rendered incorrectly and eventually send a relevant part of CSS used? Maybe also a link to your online site would allow us to see it.

Thanks in advance for any further info.

Regards,
Zdenek C.

User avatar
Certified Developer 8
Certified Developer 8
bryan-bit-wizards - 3/16/2009 10:18:47 AM
   
RE:BizForm Rendering Changes After Upgrading to 4.0
Zdenek,

Thank you for your reply. I was able to correct the spacing by defining the "EditingFormTable" class in the CSS.

Thank you for your help.

-Bryan