Skip to main content
Code formatting; rm signature
Source Link
choster
  • 1.9k
  • 12
  • 38

It should be something like below

function mymodule_civicrm_validateForm($formName, &$fields, &$files, &$form, &$errors) {
  if ('CRM_Event_Form_ManageEvent_EventInfo' == $formName) {
    if ( validation condition fails )
      $errors['custom_element'] = ts('Validation message');
    }
  }
}

HTH
Pradeep

It should be something like below

function mymodule_civicrm_validateForm($formName, &$fields, &$files, &$form, &$errors) {
  if ('CRM_Event_Form_ManageEvent_EventInfo' == $formName) {
    if ( validation condition fails )
      $errors['custom_element'] = ts('Validation message');
    }
  }
}

HTH
Pradeep

It should be something like below

function mymodule_civicrm_validateForm($formName, &$fields, &$files, &$form, &$errors) {
  if ('CRM_Event_Form_ManageEvent_EventInfo' == $formName) {
    if ( validation condition fails )
      $errors['custom_element'] = ts('Validation message');
    }
  }
}

HTH

It should be something like below

function mymodule_civicrm_validateForm($formName, &$fields, &$files, &$form, &$errors) { if ('CRM_Event_Form_ManageEvent_EventInfo' == $formName) { if ( validation condition fails ) $errors['custom_element'] = ts('Validation message'); } } }
HTH

function mymodule_civicrm_validateForm($formName, &$fields, &$files, &$form, &$errors) {
  if ('CRM_Event_Form_ManageEvent_EventInfo' == $formName) {
    if ( validation condition fails )
      $errors['custom_element'] = ts('Validation message');
    }
  }
}

HTH
Pradeep

It should be something like below

function mymodule_civicrm_validateForm($formName, &$fields, &$files, &$form, &$errors) { if ('CRM_Event_Form_ManageEvent_EventInfo' == $formName) { if ( validation condition fails ) $errors['custom_element'] = ts('Validation message'); } } }
HTH
Pradeep

It should be something like below

function mymodule_civicrm_validateForm($formName, &$fields, &$files, &$form, &$errors) {
  if ('CRM_Event_Form_ManageEvent_EventInfo' == $formName) {
    if ( validation condition fails )
      $errors['custom_element'] = ts('Validation message');
    }
  }
}

HTH
Pradeep

deleted 11 characters in body
Source Link

It should be something like below

function mymodule_civicrm_validateForm($formName, &$fields, &$files, &$form, &$errors) {
if ('CRM_Event_Form_ManageEvent_EventInfo' == $formName) {
if ( validation condition fails )
$errors['custom_element'] = ts('Validation message');
}
}
}
function mymodule_civicrm_validateForm($formName, &$fields, &$files, &$form, &$errors) { if ('CRM_Event_Form_ManageEvent_EventInfo' == $formName) { if ( validation condition fails ) $errors['custom_element'] = ts('Validation message'); } } }
HTH
Pradeep

It should be something like below

function mymodule_civicrm_validateForm($formName, &$fields, &$files, &$form, &$errors) {
if ('CRM_Event_Form_ManageEvent_EventInfo' == $formName) {
if ( validation condition fails )
$errors['custom_element'] = ts('Validation message');
}
}
}

HTH
Pradeep

It should be something like below

function mymodule_civicrm_validateForm($formName, &$fields, &$files, &$form, &$errors) { if ('CRM_Event_Form_ManageEvent_EventInfo' == $formName) { if ( validation condition fails ) $errors['custom_element'] = ts('Validation message'); } } }
HTH
Pradeep

Source Link
Loading