Validate a form if the current request is a POST request.
This tag does the same thing as validate
, but only if the current request is a POST request. Otherwise, the enclosed block will be skipped.
name | purpose | type | required? | default | choices |
---|---|---|---|---|---|
csrf |
Enable CSRF check? | boolean | No | yes |
|
if |
Conditional expression | expression | No | yes |
|
src |
Form source | index | No | form |