addField('gender_id', array('entity' => 'contact', 'type' => 'Radio', 'allowClear' => TRUE)); $form->addField('birth_date', array('entity' => 'contact', 'formatType' => 'birth')); $form->addField('is_deceased', array('entity' => 'contact', 'label' => ts('Contact is Deceased'), 'onclick' => "showDeceasedDate()")); $form->addField('deceased_date', array('entity' => 'contact', 'formatType' => 'birth')); } /** * Set default values for the form. Note that in edit/view mode * the default values are retrieved from the database * * * @param CRM_Core_Form $form * @param array $defaults */ public static function setDefaultValues(&$form, &$defaults) { } }