Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/LiveComponent/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1490,6 +1490,10 @@ How this works:
#. During that Ajax call, the form is submitted using ``$formValues``, the
form re-renders, and the page is updated.

To render validation errors for fields using the ``data-model`` attribute,
you must set ``$this->isValidated = true;`` in the constructor of the live
component using the ``ComponentWithFormTrait``.

Build the "New Post" Form Component
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down