Kentico 9表单创建

时间:2016-10-17 17:03:01

标签: kentico

我正在构建一个联系表单,由于某种原因,如果类型是HTML,我只能获得自定义布局。如果我将它设置为ASCX,我将获得Form Builder版本。

我在另一个基于Kentico的网站上查看了我的设置,无法看到我错过的内容。

这是它如何呈现出来的。 <fieldset>标签是我的。

&#13;
&#13;
<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="email1@test.com:Reason One">Reason One</option>
              <option value="email2@test.com: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>
&#13;
&#13;
&#13;

1 个答案:

答案 0 :(得分:0)

这是我用Kentico 9.0.44测试的内容:

Form design

结果是:

Result form

我也尝试使用像<asp:Panel ID="pnlWrapper" runat="server"></asp:Panel>这样的ASPX标记,但没有运气。 对我来说,这似乎是一个错误。我建议通过bug submission form报告。