addField('gender_id', ['entity' => 'contact', 'type' => 'Radio', 'allowClear' => TRUE]); $form->addField('birth_date', ['entity' => 'contact'], FALSE, FALSE); $form->addField('is_deceased', ['entity' => 'contact', 'label' => ts('Contact is Deceased'), 'onclick' => "showDeceasedDate()"]); $form->addField('deceased_date', ['entity' => 'contact'], FALSE, FALSE); } /** * 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) { } }