+1-888-365-2779
Try Now
More in this section

Forums / Designing & Styling / How to display custom fields in registration form

How to display custom fields in registration form

6 posts, 1 answered
  1. Qainan
    Qainan avatar
    24 posts
    Registered:
    25 Oct 2011
    26 Oct 2011
    Link to this post
    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


  2. Qainan
    Qainan avatar
    24 posts
    Registered:
    25 Oct 2011
    27 Oct 2011
    Link to this post
    Hi,

    Any reply, how can I customize registration form.

    Regards,
    Qainan Idris.
    www.qainanidris.com
  3. Svetoslav Petsov
    Svetoslav Petsov avatar
    456 posts
    Registered:
    24 Sep 2012
    31 Oct 2011
    Link to this post
    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
    Answered
  4. Qainan
    Qainan avatar
    24 posts
    Registered:
    25 Oct 2011
    31 Oct 2011
    Link to this post
    Hi, Thank you very much. It's working fine.....

    Regards,
    QainanIdris.com
  5. Mansoor
    Mansoor avatar
    52 posts
    Registered:
    29 Jul 2013
    28 Aug 2013
    Link to this post
    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
  6. Kaloyan
    Kaloyan avatar
    272 posts
    Registered:
    02 Dec 2016
    02 Sep 2013
    Link to this post
    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
6 posts, 1 answered