Bug: hidden required fields in repeater not ignored

  • Solved
  • Posted 3 weeks ago

Hi,

I’m using fields inside a repeater whose visibility depends on a select. Problem: hidden fields remain marked required and block saving in some cases.

Details

– Goal: show a required text field based on the select value.

– Configuration:

– Select (required): value 1 / value 2 / value 3
– field 1 (required) — show if select = value 1
– field 2 (required) — hide if select = value 1 (so show if value 2 or 3)

Observed behavior

– Case A (KO): with the Select (single) field, if I choose value 1 and fill field 1, on save the form reports field 2 as required even though it is hidden.

– Case B (OK): if I set field 2 with “show if select = value 2 OR show if = value 3” it works.

– Case C (OK): using a Taxonomy (single) instead of the Select also works correctly.

Exception: if I click Save before filling anything, the form correctly flags required fields, but afterwards it continues to consider hidden fields required; the only workaround is deleting the repeater row and re-entering the fields.

Expectation: changing the Select/Taxonomy value should reset the required status for hidden fields or mark required only the fields that are actually visible.

Test: in Profile → Edit → last step (TEST) I created 3 repeaters: the problematic one (Hide if select = value 1), an equivalent using Show-if, and one using Taxonomy.

Thanks!