Skip to content
Snippets Groups Projects
Commit f790a058 authored by Sean Madsen's avatar Sean Madsen Committed by GitHub
Browse files

Merge pull request #406 from seamuslee001/password_field_doc

Add in some descriptors to the field types and minor tidy of the quc…
parents dbb06e60 86bb1f48
No related branches found
No related tags found
No related merge requests found
......@@ -79,16 +79,16 @@ These basic elements can be added using `CRM_Core_Form()->add()`
| Type | Notes |
| --- | --- |
| text | |
| textarea | |
| text | Simple text box|
| textarea | Multirow text region. Good for fields like description |
| select | give it css class "crm-select2" to add select2 widget |
| advcheckbox | like "checkbox" element but normalizes data in postProcess |
| radio | |
| radio | Radio options |
| group | mainly useful to contain radios, see addRadio extended method |
| hidden | does not need to be added to the template |
| advmultiselect | takes up a lot of space - consider using select.crm-select2 |
| submit | |
| password | |
| submit | Buttons generally used to either submit or cancel the form |
| password | Add a password field. The display will be replaced with dots |
### Extended Types
......@@ -143,8 +143,8 @@ Examine submitted form data to determine validity. (Note: The "Validation" phase
| Step | Audience | Comments |
| --- | --- | --- |
| (Process rules) | Original Developer & Third-Party Developer | Iteratively process any rules that here added during the "build" phase (i.e. call any callbacks registered via `$form()->addFormRule()`). |
| [hook_civicrm_validate()](/hooks/hook_civicrm_validate.md) | Third-Party Developer | (Note: This is similar to `hook_civicrm_validateForm` but older) |
| [hook_civicrm_validateForm()](/hooks/hook_civicrm_validateForm.md) | Third-Party Developer | (Note: This is similar to `hook_civicrm_validate`; added in CiviCRM v4.2) |
| [hook_civicrm_validate](/hooks/hook_civicrm_validate.md) | Third-Party Developer | (Note: This is similar to `hook_civicrm_validateForm` but older) |
| [hook_civicrm_validateForm](/hooks/hook_civicrm_validateForm.md) | Third-Party Developer | (Note: This is similar to `hook_civicrm_validate`; added in CiviCRM v4.2) |
### Process Phase
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment