Top "Drupal-fapi" questions

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

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
Checking whether a user already exists in drupal

When a user enters his login information and hits submit, i want to check if the user already exists or …

php drupal drupal-fapi drupal-alter
Adding attribute to option element using forms api : drupal 7

I want to add title="icons/icon_cart.gif" for each of the below options in my select list which …

drupal drupal-7 drupal-modules drupal-fapi
How to override form action in Drupal?

I originally started this question in another thread, but that thread was sorta, kinda answered, and now I primarily want …

drupal forms action drupal-fapi drupal-alter
Form submit handlers with additional arguments

For some requirement I need to pass additional information to form submit handler. In form api, while defining custom submit …

drupal drupal-6 drupal-modules drupal-fapi
Is there any way to get uid from user name in Drupal?

Is there any core function to get uid from username in Drupal? Or I should perform a db query? my …

drupal drupal-6 drupal-fapi
Drupal: How to Render Results of Form on Same Page as Form

How would I print the results of a form submission on the same page as the form itself? Relevant hook_…

php forms drupal drupal-6 drupal-fapi
Drupal form validation functions

Is there anyway say Drupal to validate form elements like email fields, passwords, numeric fields validate automatically lets say bind …

drupal forms validation drupal-fapi
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
Drupal form validation not working for me

I am trying to modify some Drupal 6 form code and incorporate some native form validation. Code looks like this, but …

php validation drupal drupal-6 drupal-fapi