For some reason I have to get cck_address with:
- Address
- Address continued
-Apt/suite number
fields only (i don't want city, country, zip info here )
After submitting the form, the disabled fields are still required by Drupal
these few line in the form_alter of the extension language will solve this issue
function cck_address_afganistan_form_alter($form_id, &$form) {
//we don't want the city field as required
if ($form_id=='supplier_node_form' ) {
$form['field_supplier_main_address'][0]['city']['#required']=0;
}
}
Hope this helps
http://www.fagioli.biz
Comments
Comment #1
rconstantine commentedI just tried it and had no problems at all. A screenshot of your settings would be nice.
Comment #2
afagiolirconstantine, thanks for your answer!
please see attached screenshots
below, export of the dummy content type:
Comment #3
kenorb commentedI have similar problem with custom multi-select cck widgets and checkboxes.
Comment #4
jonathan_hunt commentedI get the same issue for New Zealand addresses that don't require State. I've disabled State via the CCK Address UI, but it still is marked as required in the node_form edit array. The work around is as above (override required status using form_alter).
Comment #5
afagioliclosed per inactivity