How to get rid of the error message for an optional field

I created a Custom Field named reset_pwd.

And under Edit Tag, I choose

  • Type => password
  • Check password strength (checked)
  • Generate password (checked)
  • Required (unchecked)

Error message (‘Your password is too simple’) appear when I leave the reset_pwd field blank.
But this is an optional field. Not a REQUIRED field.

Check password strength will consider empty string to be too simple. If you want to check it conditionally, uncheck the option and add the checking in Form_CustomValidate.

May I know what is the function name to call for ‘Check password strength’'?

Check password strength function is the Javascript code. You may see the function from the generated “js/ew.js” file:

// Init password options
function initPasswordOptions(e) {

}