<form> begin a form definition
- name
- form
- xml namespace
- http://moyaproject.com/forms
Defines a form.
Example
<form libname="form.login" legend="Please login" xmlns="http://moyaproject.com/forms">
<input name="username" label="Username" type="text" maxlength="30" required="yes"/>
<password name="password" label="Password" maxlength="30" required="yes"/>
<submit-button text="Login" />
</form>
attributes
name |
purpose |
type |
required? |
default |
choices |
action |
Form action |
text |
No |
|
|
class |
CSS class override |
text |
No |
|
|
csrf |
Enable csrf protection? |
boolean |
No |
yes |
|
enctype |
Form encoding type |
text |
No |
|
|
extends |
Extend another form |
text |
No |
|
|
id |
Form HTML id |
text |
No |
|
|
legend |
legend text shown above form |
text |
No |
|
|
method |
Form method |
text |
No |
"post" |
get
post
|
style |
Form style |
text |
No |
|
|
template |
Form template |
text |
No |
|
|
inherited attributes
name |
purpose |
type |
required? |
default |
choices |
if |
Conditional expression |
expression |
No |
yes |
|