Quseiton about the registration form
HI,
I have two questions about sitefinity.
1.I want to add a new field in the registration form. How can I achieve that?
2.How can I change the flow of the template?For example , I have two registration forms , which are in two different pages and must be finished by the register, before the success of the registration.
Cheers,
Wing
Hello Wing,
Here's a sample of how to add a textfield to your template, so that it is properly wired to the custom field inside your profile type:
<
sitefinity:TextField
runat
=
"server"
ID
=
"testCustom"
DisplayMode
=
"Write"
DataItemType
=
"Telerik.Sitefinity.Security.Model.SitefinityProfile"
DataFieldName
=
"testCustom"
/>
Thanks too much Vassil .
I can do it now but I have another question.
How to set the validation of CAPTCHA in the registration form?
but I cannot do the validation I wanted. I want to validate the CAPTCHA before finished the registration.
code was posted in below link
www.sitefinity.com/.../how-to-set-the-validation-of-captcha-in-the-registration-form-
Cheers
wing
Hi,
I have responded in details how to add Captcha to a registration widget or using the form builder in your other thread:
http://www.sitefinity.com/developer-network/forums/bugs-issues-/how-to-set-the-validation-of-captcha-in-the-registration-form-
Regards,
Vassil Vassilev
Telerik
Hi,
I have responded in details how to add Captcha to a registration widget or using the form builder in your other thread:
http://www.sitefinity.com/developer-network/forums/bugs-issues-/how-to-set-the-validation-of-captcha-in-the-registration-form-
Regards,
Vassil Vassilev
Telerik
How do you validate your own custom fields when using the captcha example you have given? As the field isn't accessible from the Captcha class (as it's in the layout template). I've tried to find my control on the page:
this.RadCaptchaControl.Validate();
var managedProperty = (Telerik.Sitefinity.Web.UI.Fields.TextField)this.FindControl("ManagedProperty");
var checkManagedProperty = managedProperty.IsValid();
return base.ValidateInput() && this.RadCaptchaControl.IsValid;
this.RadCaptchaControl.Validate();
var managedProperty = base.Container.GetControl<Telerik.Sitefinity.Web.UI.Fields.TextField>("ManagedProperty",true);
var checkManagedProperty = managedProperty.IsValid();
return base.ValidateInput() && this.RadCaptchaControl.IsValid && checkManagedProperty;