This is the form API tutorial.

It goes through ten form examples of increasing complexity to demonstrate the Backdrop form API.

File

modules/examples/form_example/form_example_tutorial.inc

Functions

Namesort descending Description
form_example_tutorial Main Form tutorial page.
form_example_tutorial_1 This is Example 1, a very basic form with a textfield.
form_example_tutorial_10 This is Example 10: a form with a file upload field.
form_example_tutorial_10_submit Submit handler for form_example_tutorial_10().
form_example_tutorial_10_validate Validate handler for form_example_tutorial_10().
form_example_tutorial_2 This is Example 2, a basic form with a submit button.
form_example_tutorial_3 This is Example 3: a basic form with fieldsets.
form_example_tutorial_4 This is Example 4: a basic form with required fields.
form_example_tutorial_5 This is Example 5: a basic form with additional element attributes.
form_example_tutorial_6 This is Example 6: a basic form with a validate handler.
form_example_tutorial_6_validate Validation handler for Tutorial 6.
form_example_tutorial_7 This is Example 7: a form with a submission handler.
form_example_tutorial_7_submit Submit function for form_example_tutorial_7().
form_example_tutorial_7_validate Validation function for form_example_tutorial_7().
form_example_tutorial_8 This is Example 8: a simple multistep form with a Next and a Back buttons.
form_example_tutorial_8_next_submit Submit handler for form_example_tutorial_8() next button.
form_example_tutorial_8_next_validate Validate handler for the next button on first page.
form_example_tutorial_8_page_two Returns the form for the second page of form_example_tutorial_8().
form_example_tutorial_8_page_two_back Back button handler submit handler.
form_example_tutorial_8_page_two_submit The page 2 submit handler.
form_example_tutorial_9 This is Example 9: a form with new fields dynamically added.
form_example_tutorial_9_add_name Submit handler for "Add another name" button on form_example_tutorial_9().
form_example_tutorial_9_remove_name Submit handler for "Remove name" button on form_example_tutorial_9().
form_example_tutorial_9_submit Submit function for form_example_tutorial_9().
form_example_tutorial_9_validate Validate function for form_example_tutorial_9().