Required fields not working correctly in fori loops

Hi @ronald_groot_RSF ,

Whenever you use this required attribute in inputs related to the fori, it will only work correctly for the fori itself. In your example the input is not related to the fori (because of the use of the custom drop custom.[RGS_code].risk_remark). This doesn’t seem to work as it tricks the code to think we’re in the last iteration of the loop (which in case of fori-structure is always empty.

Can we ask why did you choose to include a custom drop in the fori structure? Alternatives like input item.[RGS_code] might give the exact same output and required would work fine in that case.

Furthermore, you could combine this with the use of the persisted method to make it more clear for users from a functional perspective (CASE: use persisted to hide parts of a loop).

Let me know if this is clear!

Kind regards,
Robin