Online
Manual / Creating The Templates / Form
field output
This request
allows you to output a form field result submitted by a user.
Usage:
<output name='[field]' default='[value]' ifNumeric>
Arguments:
- default="[value]"
This allows you to specify a default value if the user inputs an empty
value for a field. Also, if you specify ifNumeric then this value will
be used if the user enters a value that is not a number.
- ifNumeric
This allows you to require a numeric value for a field, it is required
you specify the default argument with ifNumeric.
Example:
| [output
name='First Name'] |
This would
output anywhere in your template the value of 'First Name'. Replace
'First Name' with whatever field name you would like to output and please
note that it's case-sensitive.
| [output
name='Quantity1' default='0' ifNumeric] |
This would
output the quantity only if the quantity entered by a user is numeric,
else it would default to 0.
|