submit button in custom layout form builder not working

Lennard van Diggelen asked on September 14, 2016 14:37

Hi there!

I have made form by the out-of-the-box form builder and using a custom layout as ascx. I have added the submit button in my template, but it does not appear in my view but below it. See attached images:

Image Text

Image Text

do I need to enable a function first to make this work?

Thanks in advance!

Recent Answers


Roman Hutnyk answered on September 14, 2016 15:00

Lennard, could you please also provide you custom layout markup?

0 votesVote for this answer Mark as a Correct answer

Lennard van Diggelen answered on September 14, 2016 15:05

Hi Roman,

Hereby the code:"

<div class="row"> <div class="col-lg-6"> <cms:FormLabel runat="server" ID="lTextBoxControl" Field="TextBoxControl" CssClass="contact__label" /> <cms:FormControl runat="server" ID="iTextBoxControl" Field="TextBoxControl" FormControlName="TextBoxControl" CssClass="contact__input" /> <cms:FormErrorLabel runat="server" ID="eTextBoxControl" Field="TextBoxControl" /> </div> <div class="col-lg-6"> <cms:FormLabel runat="server" ID="lTextBoxControl_1" Field="TextBoxControl_1" CssClass="contact__label" /> <cms:FormControl runat="server" ID="iTextBoxControl_1" Field="TextBoxControl_1" FormControlName="TextBoxControl" CssClass="contact__input" /> <cms:FormErrorLabel runat="server" ID="eTextBoxControl_1" Field="TextBoxControl_1" /> </div> <div class="col-lg-12"> <cms:FormLabel runat="server" ID="lemailinput" Field="emailinput" CssClass="contact__label" /> <cms:FormControl runat="server" ID="iemailinput" Field="emailinput" FormControlName="emailinput" CssClass="contact__input" /> <cms:FormErrorLabel runat="server" ID="eemailinput" Field="emailinput" /> </div> <div class="col-lg-12"> <cms:FormLabel runat="server" ID="lTextAreaControl" Field="TextAreaControl" CssClass="contact__label" /> <cms:FormControl runat="server" ID="iTextAreaControl" Field="TextAreaControl" FormControlName="TextAreaControl" CssClass="contact__textarea" /> <cms:FormErrorLabel runat="server" ID="eTextAreaControl" Field="TextAreaControl" /> </div> <div class="col-lg-12"> <cms:FormLabel runat="server" ID="lDropDownListControl" Field="DropDownListControl" CssClass="contact__label" /> <cms:FormControl runat="server" ID="iDropDownListControl" Field="DropDownListControl" FormControlName="DropDownListControl" CssClass="contact__dropdown" /> <cms:FormErrorLabel runat="server" ID="eDropDownListControl" Field="DropDownListControl" /> </div> <div class="col-lg-12 text text--center"> <div class="contact__submit"> <cms:FormSubmit runat="server" ID="fSubmit" /> </div> </div> </div>
0 votesVote for this answer Mark as a Correct answer

Roman Hutnyk answered on September 14, 2016 21:12

Is there any particular reason why you can't use HTML template for alternative form?

1 votesVote for this answer Mark as a Correct answer

Lennard van Diggelen answered on September 15, 2016 06:51 (last edited on September 15, 2016 06:53)

Hello Roman,

We are using ascx as preferred language through all of our projects so we have one language we write elements with.

Secondly, we want to add attributes to the element directly like classes, data-attributes etc. so we can change the element according our coding standards.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.