can i write my own custom validations for the fields on registeration page using this module?

Comments

brendoncrawford’s picture

Assigned: Unassigned » brendoncrawford
Category: task » support
Priority: Critical » Minor
Status: Active » Closed (fixed)

This module was not really designed for building custom validations. There are other modules intended for such purposes. But, if you really wanted to, you could do something like:

hook_ajax_validate_pass($form, $form_state, $data, &$pass) {
  // Cause validation to fail
  $pass = FALSE;
  // Cause validation to succeed
  $pass = TRUE;
  // Return
  return TRUE;
}