ASPX templates
Version 4.x > ASPX templates > BizForm: Custom validation View modes: 
User avatar
Member
Member
AP-Kentico - 8/25/2009 2:53:10 PM
   
BizForm: Custom validation
I have a bizform which has two email textboxes. How can I add the validation to check that the value of confirmation email textbox is same as the email textbox?

There is not enough documentation on bizforms.

Thanks,
AP

User avatar
Kentico Support
Kentico Support
kentico_radekm - 8/26/2009 4:11:01 AM
   
RE:BizForm: Custom validation
Hello.

Could you please read this KB article? I believe it could help you: http://devnet.kentico.com/Knowledge-Base/Web-parts---Controls/How-to-compare-two-e-mail-addresses-on-bizform-.aspx

Best Regards,
Radek Macalik

User avatar
Member
Member
AP-Kentico - 8/26/2009 9:44:29 AM
   
RE:BizForm: Custom validation
Thanks for responding.
I could use the example w/o any problem however, I need to show a specific message via email validation control and not response.write. I tried using FieldErrorLabels property but its not working. Any idea how to use it? Also how to apply style to the error messages?

Thanks
AP

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 9/7/2009 11:13:12 AM
   
RE:BizForm: Custom validation
Hello,

Using FieldErrorLabels property should work. Could you please provide us with whole code of your 'OnBeforeSave' method and also let me know what version of Kentico CMS you use?

Best Regards,

Martin Dobsicek