Top "Form-api" questions

An API for add forms to your Drupal website.

Drupal 7: Best Practice for a Dynamic Select List in Drupal 7

What is the best practice for a dynamic select list in Drupal 7? Create a Field with dummy options via the …

dynamic drupal-7 selectlist form-api
How to disable a field or make it readonly in Drupal 7

I am trying to disable couple of fields and make them readonly via hook_page_alter(). I was able to …

drupal-7 field form-api
Display uploaded image - Drupal 7 Form API

Here is my form field for users to upload their company logo: $form['company_logo'] = array( '#type' => 'managed_…

php drupal file-upload drupal-7 form-api
drupal form api checkboxes

I am using drupal form api and using checkboxes. I am getting problem in default checked values with it. following …

drupal-6 form-api
Drupal 7: Triggering an AJAX callback externally in the Form API

In a Nutshell: I'm trying to trigger an external event via jQuery, causing an AJAX callback on a Drupal form …

jquery ajax drupal drupal-7 form-api
How can i do multiple file upload using Drupal 7 Form API?

I'd like to upload multiple files using Form API. '#type' => 'file' provides upload only one file. $form['picture_…

file-upload drupal-7 form-api