Version 1 (modified by Oaz, 14 years ago) (diff) |
---|
myForms reference : set of fields that can be part of a form
myformsTextField
- <tpl:myformsTextField>...</tpl:myformsTextField>
Defines/display an input field of type 'text'. The content of the tag is the default value of the field.
Attribute | Usage | Comments |
name | field identifier | mandatory |
<any> | each other attribute is set on the html 'input' tag | optional |
myformsTextArea
- <tpl:myformsTextArea>...</tpl:myformsTextArea>
Defines/display an input field of type 'textarea'. The content of the tag is the default value of the field.
Attribute | Usage | Comments |
name | field identifier | mandatory |
<any> | each other attribute is set on the html 'textarea' tag | optional |
myformsHiddenField
- {{tpl:myformsHiddenField}}
Defines/display an input field of type 'hidden'.
Attribute | Usage | Comments |
name | field identifier | mandatory |
<any> | each other attribute is set on the html 'input' tag | optional |
myformsFileField
- {{tpl:myformsFileField}}
Defines/display an input field of type 'file'.
Attribute | Usage | Comments |
name | field identifier | mandatory |
<any> | each other attribute is set on the html 'input' tag | optional |
myformsSubmit
- <tpl:myformsSubmit>...</tpl:myformsSubmit>
Defines/display an input field of type 'submit'. The content of the tag is the default value of the field.
Attribute | Usage | Comments |
name | field identifier | mandatory |
<any> | each other attribute is set on the html 'input' tag | optional |
myformsFieldValue
- {{tpl:myformsFieldValue}}
Display the field value.
Attribute | Usage | Comments |
name | field identifier | mandatory |
myformsFileFieldValue
- {{tpl:myformsFileFieldValue}}
Display data of a {{tpl:myformsFileField}} corresponding to an uploaded file.
Attribute | Usage | Comments |
name | field identifier | mandatory |
data | data identifier | mandatory. Shall be one of these : name, size, type, tmp_name, error |
myformsFieldWarning
- <tpl:myformsFieldWarning>...</tpl:myformsFieldWarning>
Validates a field input. When validation fails, the form is re-displayed instead of form processing. The content of the tag is a warning message that is displayed only when the validation fails.
Attribute | Usage | Comments |
name | field identifier | mandatory |
validate | regular expression that should match the field value | mandatory |
myformsAntispamField
- {{tpl:myformsAntispamField}}
Display a set of input fields (image captcha and text input) for spam protection.
No attributes.
myformsAntispamWarning
- <tpl:myformsAntispamWarning>...</tpl:myformsAntispamWarning>
Validates a captcha input. When validation fails, the form is re-displayed instead of form processing. The content of the tag is a warning message that is displayed only when the captcha validation fails.
No attributes.