Examples demonstrating the Backdrop Form API.
The Form Example module is a part of the Backdrop Module Examples for Developers project and provides various Backdrop Form API Examples. You can download and experiment with this code at the Backdrop Module Examples for Developers project page.
Parent topics
File
- modules/
examples/ form_example/ form_example.module, line 7 - Examples demonstrating the Backdrop Form API.
Functions
Name![]() |
Location | Description |
---|---|---|
form_example_config_info |
modules/ |
Implements hook_config_info(). |
form_example_element_info |
modules/ |
Implements hook_element_info(). |
form_example_intro |
modules/ |
Page callback for our general info page. |
form_example_menu |
modules/ |
Implements hook_menu(). |
form_example_states_form |
modules/ |
States demo form. |
form_example_theme |
modules/ |
Implements hook_theme(). |
form_example_tutorial |
modules/ |
Main Form tutorial page. |
form_example_tutorial_1 |
modules/ |
Tutorial Example 1. |
form_example_tutorial_10 |
modules/ |
Example 10: A form with a file upload field. |
form_example_tutorial_2 |
modules/ |
This is Example 2, a basic form with a submit button. |
form_example_tutorial_3 |
modules/ |
Example 3: A basic form with fieldsets. |
form_example_tutorial_4 |
modules/ |
Example 4: Basic form with required fields. |
form_example_tutorial_5 |
modules/ |
Example 5: Basic form with additional element attributes. |
form_example_tutorial_7 |
modules/ |
Example 7: With a submit handler. |
form_example_tutorial_8 |
modules/ |
Example 8: A simple multistep form with a Next and a Back button. |
form_example_tutorial_9 |
modules/ |
Example 9: A form with a dynamically added new fields. |
form_example_wizard |
modules/ |
The primary formbuilder function for the wizard form. |
form_example_wizard_location_info |
modules/ |
Returns form elements for the 'location info' page of the wizard. |
form_example_wizard_location_info_validate |
modules/ |
Custom validation form for the 'location info' page of the wizard. |
form_example_wizard_next_submit |
modules/ |
Submit handler for the 'next' button. |
form_example_wizard_other_info |
modules/ |
Returns form elements for the 'other info' page of the wizard. |
form_example_wizard_personal_info |
modules/ |
Returns form elements for the 'personal info' page of the wizard. |
form_example_wizard_previous_submit |
modules/ |
Submit handler for the "previous" button. |
form_example_wizard_submit |
modules/ |
Wizard form submit handler. |
_form_example_steps |
modules/ |
Returns the list of steps and their associated forms. |
Classes
Name![]() |
Location | Description |
---|---|---|
FormExampleTestCase |
modules/ |
Default test case for the form_example module. |