Le 24/11/2010 11:26, Hans Langouche a écrit :
Hi there,

was wondering if the above is possible in Drupal 7, getting a multi value widget in a custom form (generated through fapi) ? The form isn't related to an entity.

The Field / form API is not primarily designed for this use case. However, you can have it work with some manual fiddling. See how Field UI does it for the 'default value' widget displayed on the 'edit field settings' form :
field_ui_field_edit_form()
field_ui_default_value_widget()
field_ui_field_edit_form_validate()
field_ui_field_edit_form_submit()

yched

Reply via email to