Dynamic required validation not working on dropzone in AC2

Wappler Version : 6.8.0
Operating System : W11
Server Model: NodeJS

<input id="fileEditAttactments" name="TemplateHeader" dmx-bind:accept="(ddTemplate.data.header.format== 'DOCUMENT' || ddTemplate.data.header.format =='VIDEO' ? 'audio/*,video/*,image/*,application/pdf,application/vnd.ms-excel,application/msword' : (ddTemplate.data.header.format + '/*'))" type="file" class="form-control" is="dmx-dropzone"  data-rule-maxsize="16777216" data-msg-maxsize="Please select a file of no more than 16 megabytes." dmx-bind:required="(ddTemplate.data.header.format=='IMAGE' || ddTemplate.data.header.format=='DOCUMENT' || ddTemplate.data.header.format=='VIDEO')">

For above input, converted to dropzone, validation does not happen when submitting the form.
This was working in AC1.

Could you check if the following update fixes the issue.

dmxDropzone.zip (9.9 KB)

This does not fix the issue.

A new try: dmxDropzone.zip (9.9 KB)

This one doesn't work either.

Any update here @patrick ?

@patrick Bump.

Got a new update for you: dmxDropzone.zip (9.8 KB)

With this, its throwing a required error even when there is a file.

I had only multi upload fields in my test which worked, seems the problem was only with the single upload.

Have a new update: dmxDropzone.zip (9.9 KB)

This one works. Thanks.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.