Autoadmin generated form inputs are all required. It'ld be nice to have a non required type.

Comments

XaraX’s picture

Title: Support for empty fields » Support for not required fields
_rune’s picture

Status: Active » Closed (fixed)

Hi

Thx for using Autoadmin. Non required fields are already supported. It and all other form settings can be changed by doing:

...
// In hook_autoadmin_schema().
'fields' => array(
  'the_field_you_want_to_change' => array(
    ...
    '#form' => array(
      '#required' => FALSE,
    ),
    ...
  );
)
...

If you cant get this to work, write again.

Cheers
Rune