Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6684509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:56:54+00:00 2026-05-26T04:56:54+00:00

I want to implement a password verification using advanced VType on extjs taken from

  • 0

I want to implement a password verification using advanced VType on extjs taken from http://dev.sencha.com/deploy/ext-4.0.2a/examples/form/adv-vtypes.html, but look like the confirm password text field does not validate on the change of password text field if the password confirm doesn’t have values (if password value is ‘test’ and confirm password value is blank then the form is valid). I’m sure this is not a right thing.
How to make/force the confirm password text field to be valid/invalid by following condition:

  1. If password value not equal to confirm password value then confirm
    password is invalid (even if confirm password value is blank)
  2. If password value is blank and confirm password value is blank to
    then confirm password is valid
  3. If password value is equal to confirm password value then confirm
    password is valid

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T04:56:55+00:00Added an answer on May 26, 2026 at 4:56 am

    Ok look like I’ve solved my own problem.
    As Molecule Man said it’s cannot be achieved (easily).

    I need to override Ext.form.field.Text.getErrors to solve that

    Ext.form.field.Text.override({
        getErrors: function(value) {
            var me = this,
                errors = me.callParent(arguments),
                validator = me.validator,
                emptyText = me.emptyText,
                allowBlank = me.allowBlank,
                vtype = me.vtype,
                vtypes = Ext.form.field.VTypes,
                regex = me.regex,
                format = Ext.String.format,
                msg;
    
            value = value || me.processRawValue(me.getRawValue());
    
            if (Ext.isFunction(validator)) {
                msg = validator.call(me, value);
                if (msg !== true) {
                    errors.push(msg);
                }
            }
    
            if (value.length < 1 || value === emptyText) {
                if (!allowBlank) {
                    errors.push(me.blankText);
                }
                //FIX BY ME : NEED TO COMMENT THIS BECAUSE ITS CAN IGNORING VTYPE AS ITS IMMEDIATELY RETURN ERRORS
                //return errors;
            }
    
            if (value.length < me.minLength) {
                errors.push(format(me.minLengthText, me.minLength));
            }
    
            if (value.length > me.maxLength) {
                errors.push(format(me.maxLengthText, me.maxLength));
            }
    
            if (vtype) {
                if(!vtypes[vtype](value, me)){
                    errors.push(me.vtypeText || vtypes[vtype +'Text']);
                }
            }
    
            if (regex && !regex.test(value)) {
                errors.push(me.regexText || me.invalidText);
            }
    
            return errors;
        }
    });
    

    Here is the complete code http://jsfiddle.net/gajahlemu/SY6WC/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I’m working on a website using VB (ASP.NET) I want to implement a password
I want to implement an ISAPI filter like feature using HttpModule in IIS7 running
I want to create a login page, it can easy implement using Ruby on
I have an existing application that i want to implement password resets after 30
I want to to implement password recovery in my web application. I'd like to
I want to implement a forgot password function in my java web application. I
I want to implement HTTP basic authentication on my staging server, but only for
I'm using Play 1.2.1. I want to hash my users password. I thought that
I want to implement a forgot-password feature in asp.net mvc that allows users to
I want to implement a functionality of changing user's password. It's basically a form

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.