Custom Fields
Support General Seems error in meta box plugin Reply To: Seems error in meta box plugin


Anh Tran


Because of the dynamic of the field, my patch works as follows:

  • Do not set required for the input, instead set data-required="1".
  • When users add or remove a file, run a JS callback to check if there’s no uploaded files, then set the required field 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.