Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > keep password if validation fails View modes: 
User avatar
Member
Member
hi1ton - 3/23/2011 6:25:36 AM
   
keep password if validation fails
Hi

I have created a signup form with password and confirm password fields.
If someone enter in their password but fails validation on another field like captcha they have to enter in the password again twice.

How can I get the password field to remeber the password after validation, like all the other text fields do?

Thanks,

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 3/23/2011 10:53:19 AM
   
RE:keep password if validation fails
Hello,

You can change the behavior of the password input field in the following fie, if you are using the password without validation:

CMSModules\Membership\FormControls\Passwords\Password.ascx.cs

For the control used in the form control with validation you need to alter the file:

CMSModules\Membership\FormControls\Passwords\PasswordConfirmator.ascx.cs

You can check for example the following file to see, how to preserve the value:

CMSFormControls/Inputs/LargeTextArea.ascx

For more information about pre-populating BizForms you can also check this knowledge base article.

Best regards,
Boris Pocatko

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 7/26/2012 2:46:08 AM
   
RE:keep password if validation fails
Hello,

This thread is outdated. A much simpler approach is described here.

Best regards,
Boris Pocatko