Top "Drupal-forms" questions

Forms are the primary method for obtaining, and acting upon user input in Drupal.

Adding text (just text!) to a form in Drupal 7

OK, I finally figured out how to add (or edit) form controls through the form API in Drupal. But now, …

forms api drupal drupal-7 drupal-forms
AJAX form validate and submit

I created a form in Drupal 7 and want to use AJAX. I added this to the submit button array: "#ajax" =&…

jquery ajax drupal-7 drupal-forms
How to redirect user to a specific page after they login if they belong to a certain role?

We have certain users in our member list that have a role "vendor" attached to them. All such members are …

drupal drupal-6 drupal-forms
In Drupal 7 form API - How do I create an input of type "button" (not "submit")?

I am trying to have a button which is not a "submit" type of button, but rather a normal "button" …

drupal drupal-fapi drupal-forms
Add css property for individual components in form elements - Drupal

I have a drupal form and I need to add separate classes to the components in a form element. That …

drupal drupal-forms
Creating date field with only month and year - Drupal

I am creating a credit card form in Drupal. I need a date select field where users can select their …

drupal drupal-forms
drupal 7 ajax form rebuild form to change form_state value

I have one drupal form, i want it works as "add one more": there is one button at the end …

drupal-7 drupal-forms drupal-ajax
drupal: Form API, dynamically hide or show fields based on input

I'm building a form module. One of the early fields is a set of radio buttons. By default the first …

php drupal drupal-7 drupal-fapi drupal-forms
simple example form in drupal 7 with everything configured correctly shows "Page not found"..Why..?

I have installed drupal 7 and have been trying to create a custom form. The below code which am trying has …

drupal drupal-7 drupal-modules drupal-forms
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