Registration Widget Custom Fields

Posted by Community Admin on 05-Aug-2018 17:45

Registration Widget Custom Fields

All Replies

Posted by Community Admin on 05-Oct-2011 00:00

I would like to know what is it that I am doing wrong in the Registration Widget. I keep trying to add the custom fields that I have created for my Basic Profile.

When I go to add the field I get this code in the Edit Template page: <sitefinity:TextField runat="server" DisplayMode="Read" Value='<%# Eval("Company")%>' />

When I add this code and preview the page, nothing shows up, nothing. 

when I change DisplayMode to "Write" I am able to see an input field that does absolutely nothing in regards to registering that fields data. 

I other words I need to know what I am suppose to write in this template editor in order to ge the right field to show up.

sitefinity.litmos.com/.../34762   that has been helpful but at the end he just mentions the registration widget instead of actually showing how to add the custom fields.

please help!

Posted by Community Admin on 14-Oct-2011 00:00

Hello Fredy,

 Your question was answered in your support ticket, I'm posting the answer here, as well:

Here's how you should add the field to the template, so it can be bound properly:

<sitefinity:TextFieldrunat="server"ID="testCustom"  DisplayMode="Write"DataItemType="Telerik.Sitefinity.Security.Model.SitefinityProfile"DataFieldName="testCustom"/>


The name of my field here is "testCustom" and it is added in the basic profile. If you add the field it to another profile type, you will have to change the DataItemType to the relevant Profile Type.  The DataFieldName property indicates to which field the value should be bound. Also, an ID is necessary to be added.

Greetings,
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

Posted by Community Admin on 27-Oct-2011 00:00

Hi,

How can I add check box in this registration form.

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

Posted by Community Admin on 27-Oct-2011 00:00

Hi Qainan,

 Here's an example of adding a dropdown choiceField, bound to a field in the Profile Type, called Country:

<sitefinity:ChoiceField id="State" runat="server" DisplayMode="Write" RenderChoicesAs="DropDown" DataItemType="Telerik.Sitefinity.Security.Model.SitefinityProfile" DataFieldName="Country">
                    <Choices>
                        <sitefinity:ChoiceItem Text="Bulgaria" value="Bulgaria"></sitefinity:ChoiceItem>
                        <sitefinity:ChoiceItem Text="UK" value="UK"></sitefinity:ChoiceItem>
                        <sitefinity:ChoiceItem Text="USA" value="USA"></sitefinity:ChoiceItem>
                    </Choices>
            </sitefinity:ChoiceField>
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

Posted by Community Admin on 27-Oct-2011 00:00

Hi Thank you very much. I am looking for SingleCheckBox. Problem is I am unable to save the form request in profile. I would be great full if you can help me in this regards.

Thank you very much.

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

Posted by Community Admin on 27-Oct-2011 00:00

Hi Qainan,

 You can use the same code that I've sent to you, only with a simple change in syntax:

RenderChoicesAs="SingleCheckBox"
Also, have in mind that the custom field that you register in your profile must be of type Multiple Choice.

Best wishes,
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

Posted by Community Admin on 21-May-2012 00:00

Can checkboxes and dropdownlists be used in the profile editing widget as well?
Would the country in the user's profile be selected properly?
Another issue: How do you implement dropdownlists and checkboxes in the BACK-END registration and user profile widgets (no templates are open for us the change)?

Posted by Community Admin on 02-Oct-2012 00:00

does this mean that I have to individually add all the choices in the code portion as well?

If so what was the purpose to adding them in the GUI of the choice field?

Posted by Community Admin on 02-Oct-2012 00:00

Also why aren't the default inserts the textboxes when you are working on the registration widget and not the profile widget, seems that a lot of coding is used when there is a lot of GUI work done before hand.

This thread is closed