Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > BizForm validation - match control values View modes: 
User avatar
Member
Member
john.banning-springbox - 3/26/2009 9:56:03 AM
   
BizForm validation - match control values
In my BizForm I have 2 fields that need to have the same value for a sucessful submission, Email and Confrim Email.

Looking at the BizForm all that seems to be available for validation are Regular Expressions. Is it possible to the values of 2 controls in a BizForm..

thanks,
John

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 4/2/2009 7:01:35 AM
   
RE:BizForm validation - match control values
Hi John,

I would recommend creating custom form control (please see http://www.kentico.com/docs/devguide/form_controls_overview.htm and http://www.kentico.com/docs/devguide/developing_form_controls.htm for more details) where you put two textboxes and compare values from both text boxes manually in code-behind of form control. You can inspire by existing ~\CMSFormControls\PasswordConfirmator.ascx form control (in Kentico CMS 4.0) that works on same principle.

Best Regards,

Martin Dobsicek