Skip to content

Commit

Permalink
form control fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedik committed Nov 16, 2024
1 parent 6fa64ed commit b681960
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/general-concepts/forms/manipulating-forms.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ Form class provides a methods to manage these control fields programmatically:
- `renderControlFields()` render the control fields;

While rendering the control fields the CSRF token will always be rendered, no need to add it to list of control fields.
The name `joomla.form.token` is reserved in the control fields list for Joomla default CSRF token field.
When in some reason need to remove default CSRF token then use `$form->removeControlField('joomla.form.token');` to remove it.

### Use of control fields example

Expand Down

0 comments on commit b681960

Please sign in to comment.