Jump to content

Password field type "required" only when empty


Gazley
 Share

Recommended Posts

Hi,

I've a custom page with a field called 'password' of type 'Password'. I've made it a 'required' field. The first time the page is saved, the password is required as you would expect.

The problem is, any subsequent changes made to the page cannot be saved because the password 'required' validation is being applied by the page even though there is an underlying password already set and in the DB.

I only want the required validation to apply if there is no password set, not when the password field appears "empty".

Any suggestions?

Thanks! 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...