我正在構建一個聯繫表單,出於某種原因,我只能獲取自定義佈局來呈現,如果類型是HTML。如果我將它設置爲ASCX,我會得到Form Builder版本。Kentico 9表單創建
我檢查了我的設置與另一個基於Kentico的網站,並看不到我失蹤。
這是它如何呈現。 <fieldset>
標籤是我的。
<div id="ctl00_ctl00_ContentPlaceHolder1_plcZone_lt_cph_pageBody_mainSection_On_lineForm_viewBiz_pnlForm" class="FormPanel" onkeypress="javascript:return WebForm_FireDefaultButton(event, 'ctl00_ctl00_ContentPlaceHolder1_plcZone_lt_cph_pageBody_mainSection_On_lineForm_viewBiz_ctl00_btnOK')">
<fieldset>
</fieldset>
<fieldset>
</fieldset>
<fieldset>
</fieldset>
<table class="EditingFormTable">
<tbody>
<tr>
<td class="FieldLabel">
<label id="ctl00_ctl00_ContentPlaceHolder1_plcZone_lt_cph_pageBody_mainSection_On_lineForm_viewBiz_ctl00_lReasonForMessage" title="The user selects a reason, which also controls who gets the email notification" class="EditingFormLabel" for="ctl00_ctl00_ContentPlaceHolder1_plcZone_lt_cph_pageBody_mainSection_On_lineForm_viewBiz_ctl00_ctl01_fcReasonForMessage_dropDownList">Reason For Message:</label>
</td>
<td class="EditingFormValueCell">
<div>
<select name="ctl00$ctl00$ContentPlaceHolder1$plcZone$lt$cph_pageBody$mainSection$On_lineForm$viewBiz$ctl00$ctl01$fcReasonForMessage$dropDownList" id="ctl00_ctl00_ContentPlaceHolder1_plcZone_lt_cph_pageBody_mainSection_On_lineForm_viewBiz_ctl00_ctl01_fcReasonForMessage_dropDownList"
class="DropDownField form-control test">
<option selected="selected" value="[email protected]:Reason One">Reason One</option>
<option value="[email protected]:Reason Two">Reason Two</option>
</select>
<div id="ctl00_ctl00_ContentPlaceHolder1_plcZone_lt_cph_pageBody_mainSection_On_lineForm_viewBiz_ctl00_ctl01_fcReasonForMessage_autoComplete" class="autocomplete">
</div>
</div>
</td>
</tr>
<tr>
<td class="FieldLabel">
<label id="ctl00_ctl00_ContentPlaceHolder1_plcZone_lt_cph_pageBody_mainSection_On_lineForm_viewBiz_ctl00_lName" class="EditingFormLabel" for="ctl00_ctl00_ContentPlaceHolder1_plcZone_lt_cph_pageBody_mainSection_On_lineForm_viewBiz_ctl00_ctl04_fcName_txtText">Name:</label>
</td>
<td class="EditingFormValueCell">
<div>
<input name="ctl00$ctl00$ContentPlaceHolder1$plcZone$lt$cph_pageBody$mainSection$On_lineForm$viewBiz$ctl00$ctl04$fcName$txtText" type="text" maxlength="200" id="ctl00_ctl00_ContentPlaceHolder1_plcZone_lt_cph_pageBody_mainSection_On_lineForm_viewBiz_ctl00_ctl04_fcName_txtText"
class="form-control">
</div>
</td>
</tr>
<tr>
<td class="FieldLabel"></td>
<td class="EditingFormValueCell">
<input type="submit" name="ctl00$ctl00$ContentPlaceHolder1$plcZone$lt$cph_pageBody$mainSection$On_lineForm$viewBiz$ctl00$btnOK" value="Submit" id="ctl00_ctl00_ContentPlaceHolder1_plcZone_lt_cph_pageBody_mainSection_On_lineForm_viewBiz_ctl00_btnOK"
class="FormButton btn btn-primary">
</td>
</tr>
</tbody>
</table>
</div>
在v9.0.32中適合我。您是否試過沖洗Kentico緩存?您是否應用了最新的修補程序?你不使用替代形式嗎? – rocky
啓動後,我一直停留在修復程序30。我將嘗試清除kentico緩存,如果沒有,請參閱它是HTML代碼表單,這是繁瑣的代碼。 –
我沒有看到在HF 31/32中修復的與此相關的任何錯誤。這一定是別的。你能檢查數據庫中存儲的內容嗎?也許添加一些描述問題的屏幕截圖? – rocky