Top "Drupal-fapi" questions

The Drupal form API is a very strong, robust, easy and scalable API for creating forms in Drupal.

cannot get checkboxes value using drupal form api

i have form in drupal which uploads images and has got few checkboxes in it. Here is the form: $form[…

drupal drupal-6 drupal-modules drupal-fapi drupal-forms
Drupal 7 - input form readonly and apply style

I need to apply style and read-only property to an input element of a drupal form. I coded the following: $…

drupal drupal-7 drupal-fapi
How can I disable a Drupal form submit button when it is clicked to prevent double submission?

Sounds like a simple question. I've added a bit of jQuery magic: $("#edit-save").click(function(event) { $(this).attr("disabled", "true"); }); …

jquery drupal drupal-fapi
hook_form_submit not being called

I'm trying to submit a form and use hook_form_submit. The problem is the form is displayed via ajax …

drupal drupal-6 drupal-fapi
Drupal Form API and $form_state['storage'] is destroyed on a page refresh

I have a form that displays two submit buttons. The first submit button sets $form_state['storage'] to a value. …

php drupal drupal-6 drupal-fapi
Drupal 7 : Getting the values from radio buttons form api

So this is my form : $active = array(0 => t('Poster'), 1 => t('Postcard'), 2=>t('Post it')); $form['radioimage']['active'] = …

drupal drupal-7 drupal-modules drupal-fapi
How to include drupal form elements in a data table

I have a data table which is populated with data unrelated to drupal content (from a third party system). The …

php forms drupal datatable drupal-fapi