April 2, 2019 at 3:29 PM #14026
Because of the dynamic of the field, my patch works as follows:
- Do not set
requiredfor the input, instead set
- When users add or remove a file, run a JS callback to check if there’s no uploaded files, then set the
requiredfield for the first input (we only need to set for the first one as it’s okay to have at least one input not empty if there are many inputs).
I have no idea how your dynamic script works, maybe you get the the idea of how it works here and might change your script a little bit.