My function:
function _custom_get_ublox_communication_checkbox_form_element() {
return array(
'#type' => 'checkboxes',
'#title' => t('Communications'),
'#options' => array(
1 => t('I consent to retaining my personal data for the purposes of receiving personalized marketing materials, offers, invitations to webinars and other similar events. To learn more, read our <a )),
),
'#required' => TRUE,
);
}
This checkbox is mandatory as there is option '#required' => TRUE, but after removing the required option it is not even removing the required(*) check from the field. Can anyone please help me on this? Thanks in advance
Aucun commentaire:
Enregistrer un commentaire