Hello,
The
Custom registration web part uses the
DataForm control which is capable of displaying dynamic form according to your alternative form and custom layout and the web part as well uses custom submit button which is hardcoded in the layout of the web part code file (~\CMSWebParts\Membership\Registration\CustomRegistrationForm.ascx):
<asp:Panel ID="pnlRegForm" runat="server" DefaultButton="btnRegister">
<cms:DataForm ID="formUser" runat="server" IsLiveSite="true" />
<asp:PlaceHolder runat="server" ID="plcCaptcha">
<table>
<tr>
<td>
<cms:LocalizedLabel runat="server" ID="lblCaptcha" ResourceString="webparts_membership_registrationform.captcha" /></td>
<td>
<uc1:SecurityCode ID="captchaElem" runat="server" />
</td>
</tr>
</table>
</asp:PlaceHolder>
<cms:CMSButton ID="btnRegister" runat="server" CssClass="RegisterButton" />
</asp:Panel>
Please notice that there is a submit button with ID="btnRegister".
However, web part disables the submit button of the
DataForm control, so this is why the submit button specified in the custom layout is not visible:
protected override void OnPreRender(EventArgs e)
{
base.OnPreRender(e);
// Hide default form submit button
if ((formUser != null) && (formUser.BasicForm != null))
{
formUser.BasicForm.SubmitButton.Visible = false;
}
}
So, what you can do, is to modify this web part on your own and so that it displayes only one button (standard button vs submit button defined in the alternative form)
Best regards,
Michal Legen