This page provides a programmer's reference to the Backdrop CMS Form API. For a brief introduction on how to create forms, see the Form generation guide. For more extensive information about the Form API, see the Form API handbook (Drupal 7 documentation).

Skip to: Default Values | Elements | Properties

checkboxcheckboxescolordatefieldsetfilehtml_datehtml_datetimehtml_timemachine_namemanaged_filepasswordpassword_confirmradioradiosselecttextareatextfieldtext_formaturl
#access
#action
#after_build
#ajax
#ajax['callback']
#ajax['effect']
#ajax['event']
#ajax['keypress']
#ajax['method']
#ajax['path']
#ajax['prevent']
#ajax['progress']
#ajax['trigger_as']
#ajax['wrapper']
#array_parents
#attached
#attributes
#autocomplete_path
#built
#button_type
#children
#cols
#config
#default_tab
#default_value
#delta
#description
#disabled
#element_validate
#empty
#empty_option
#empty_value
#error
#executes_submit_callback
#field_prefix
#field_suffix
#group
#header
#id
#input
#js_select
#limit_validation_errors
#markup
#maxlength
#method
#multiple
#name
#options
#parents
#placeholder
#post_render
#prefix
#pre_render
#printed
#process
#processed
#required
#resizable
#return_value
#rows
#size
#src
#states
#submit
#suffix
#theme
#theme_wrappers
#title
#title_display
#tree
#type
#validate
#validation_arguments
#value
#value_callback
#weight

Special elements

actionsbuttoncontainerformhelphiddenimage_buttonitemmarkupsubmittableselecttokenvaluevertical_tabsweight
#access
#action
#after_build
#ajax
#ajax['callback']
#ajax['effect']
#ajax['event']
#ajax['keypress']
#ajax['method']
#ajax['path']
#ajax['prevent']
#ajax['progress']
#ajax['trigger_as']
#ajax['wrapper']
#array_parents
#attached
#attributes
#autocomplete_path
#built
#button_type
#children
#cols
#config
#default_tab
#default_value
#delta
#description
#disabled
#element_validate
#empty
#empty_option
#empty_value
#error
#executes_submit_callback
#field_prefix
#field_suffix
#group
#header
#id
#input
#js_select
#limit_validation_errors
#markup
#maxlength
#method
#multiple
#name
#options
#parents
#placeholder
#post_render
#prefix
#pre_render
#printed
#process
#processed
#required
#resizable
#return_value
#rows
#size
#src
#states
#submit
#suffix
#theme
#theme_wrappers
#title
#title_display
#tree
#type
#validate
#validation_arguments
#value
#value_callback
#weight

Default values

Every element automatically has these default values (see system_element_info()):

The following is a list of default values which do not need to be set (found in system_element_info):

checkboxes

file

form

machine_name

textarea

text_format

weight

Elements

Properties