volto icon indicating copy to clipboard operation
volto copied to clipboard

FormValidation does not correctly validate schemas within ObjectListWidget

Open alexandreIFB opened this issue 7 months ago • 1 comments

Problem Description:

Currently, Volto's validation system (FormValidation) does not properly process schemas within ObjectListWidget components. When a required field exists inside an ObjectListWidget item, validation is not applied, allowing forms to be saved with inconsistent or incomplete data.

The problem occurs because the current ObjectListWidget validator is not correctly integrated with the FormValidation system, nor is it recursively validating the objects within the list.

How to reproduce:

  1. Add a "Search" block to a page
  2. In the sidebar panel, add a new facet
  3. In the facet form, notice that the "Field" field is marked as required
  4. Leave the "Field" field empty
  5. Notice that it's possible to save the facet even with this required field blank
  6. Save the page and observe that no validation error messages appear

Suggested solution:

changing the validation structure FormValidaiton to allow for more flexible validation handling, particularly for complex nested widgets like ObjectListWidget.

alexandreIFB avatar May 15 '25 18:05 alexandreIFB

Hi There! 👋

We haven't seen any activity on this issue in a while :sleeping:, and we want to make sure that it's still relevant.

If updating to the latest version of Volto doesn't help, please let us know by:

  • adding a comment about what needs to be done next 💬
  • updating its status and other labels 🏷️

Otherwise close this issue. 🧹

github-actions[bot] avatar Nov 12 '25 00:11 github-actions[bot]