A form is a way of collecting information via a web page and doing something with it. Some examples include:
- Allowing users to send an email directly from a page
- Providing directions to your location from a location entered by a user
- Providing a Google search of your site
- Collecting survey data from your user
HTML forms can contain text entry fields, select boxes, checkboxs or radio boxes.
- ~select - Create a drop-down list. Create a layer group ending with ~select, all text items in this group will be part of the pulldown, regardless if they invisible or not.
- ~button - A submit button is used to send form data to a server.
- ~radio - Radio buttons let a user select ONLY ONE of a limited number of choices.
- ~checkbox - Checkboxes let a user select ZERO or MORE options of a limited number of choices.
- ~textarea - A multi-line input field that a user can enter text into.
- ~input - A one-line input field that a user can enter text into. Create a layer group ending with ~input, the text layer in this group will be used within the input box as a placeholder.
All input types must be a layer group that ends with ~form. Anything prior to the ~form will be added to the form tag action. This is where you specify the server location that will process the request.