Common input elements

This example shows the use of all input-types.
What standardized tests did you take?
Checkboxes, #type = checkboxes
Color, #type = color
Date, #type = date

Date Time

Date time, #type = datetime
URL, #type = url
Number, #type = number
Password, #type = password
PasswordConfirm, #type = password_confirm
Range, #type = range
Poll status
Radios, #type = radios
Select, #type = select
Select Multiple
Tel, #type = tel
Details, #type = details
First Name Last Name
Indy Jones
Darth Vader
Super Man
Textarea, #type = textarea

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
Text format, #type = text_format
Textfield, #type = textfield
Weight, #type = weight
File, #type = file
Manage file, #type = managed_file