How to display custom fields in registration form - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

How to display custom fields in registration form

  • How to display custom fields in registration form
  • 309607_Registration-Step-1-2011-10-26-18-14-03.png
    Hi,

    I would like to know how can I display custom fields in registration form, I have updated basic profile ( Administrator -> Users -> Manage profile types -> Basic profile). In basic profile I added one custom field which is chkLiveInUAE, type yes/no. It's working fine from administrator user account but when I add registration widgets in page and edit that registration widgets in page it's not showing there. Please any one can guide how can I show in my page.

    <%@ Control Language="C#" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.Fields" Assembly="Telerik.Sitefinity" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI" Assembly="Telerik.Sitefinity" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.ContentUI" Assembly="Telerik.Sitefinity" %>
    <%@ Register TagPrefix="sfvalidation" Namespace="Telerik.Sitefinity.Web.UI.Validation.Definitions" Assembly="Telerik.Sitefinity"%>

    <%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Modules.Libraries.Web.UI.Documents" TagPrefix="sfLibraries" %>

    <fieldset class="sfregisterFormWrp">

        <asp:Panel ID="formContainer" runat="server" DefaultButton="registerButton">
            <ol class="sfregisterFieldsList">
               
                <sf:TextField runat="server" DisplayMode="Read" Value='<%# Eval("chkLiveInUAE")%>'   WrapperTag="li" CssClass="sfregisterField" />
               
            </ol>

    </fieldset>

    Please find screen shoot. Please can you reply me as soon as possible.

    Regards,
    Qainan Idris.
    http://www.qainanidris.com


  • Hi,

    Any reply, how can I customize registration form.

    Regards,
    Qainan Idris.
    www.qainanidris.com
  • Hi Qainan,

     Here's how you should add the ChoiceField to your registration form:

    <sitefinity:ChoiceFieldid="Choices"runat="server"DisplayMode="Write"RenderChoicesAs="RadioButtons"DataItemType="Telerik.Sitefinity.Security.Model.SitefinityProfile"DataFieldName="YourFieldName">
                        <Choices>
                            <sitefinity:ChoiceItemText="Yes"value="Yes"></sitefinity:ChoiceItem>
                            <sitefinity:ChoiceItemText="No"value="No"></sitefinity:ChoiceItem>
                        </Choices>
                </sitefinity:ChoiceField>
    Kind regards,
    Svetoslav Petsov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  • Hi, Thank you very much. It's working fine.....

    Regards,
    QainanIdris.com
  • Hi,

    I want to add Phone number with validation in Registration widget , Can one please guide me how can i get this.

    thanks in adavance
  • Hello Mansoor,

    I would suggest to check the following forum threads where you can find detailed information about your desired scenario:

    How to display custom fields in registration form

    Registration widget problem

    Validation Failing in a Customized Registration Form Template

    Regards,
    Kaloyan
    Telerik
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items