Registration form field default to ticked
Hi,
I'm trying to add a "Subscribe to Newsletter" checkbox to the registration form widget, but need the box to be ticked by default. I have the following code in the template:
<
sitefinity:ChoiceField
id
=
"chkNewsletter"
runat
=
"server"
DisplayMode
=
"Write"
RenderChoicesAs
=
"SingleCheckBox"
DataItemType
=
"Telerik.Sitefinity.Security.Model.SitefinityProfile"
DataFieldName
=
"NewsletterSignup"
>
<
Choices
>
<
sitefinity:ChoiceItem
Text
=
"I would like to receive the newsletter"
value
=
"Yes"
></
sitefinity:ChoiceItem
>
</
Choices
>
</
sitefinity:ChoiceField
>