Setting Multi File Upload as not required

Set a multi-file upload field as optional in ChronoForms.

Overview

In CF6, when enabling multi-file selection, the field incorrectly requires a file even when marked as not required.
Upgrade the form to CF7, as this version properly handles validation for optional multi-file upload fields.

Answered
jl jlundmark 09 Oct, 2020
I am having an issue where if I set the File Field option "Multi file select?" to Yes then the field will not pass validation unless a file is selected.

The field is not required. If I set the option to No then the field will validate properly, both if empty or if a file is too large/invalid, etc.

I am using the Event Loader on Upload Files, without this the form will submit even if the file is too large/invalid and will not show an error but will be missing the file.

Using latest CF6.

Field name:
pictures[]

Any help would be appreciated.
Max_admin Max_admin 14 Oct, 2020
Answer
Hi,

Please test this on v7 which can be installed on v6 on the same website, if it does work fine (I tested here and it does) then please build this form only in v7 instead
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
jl jlundmark 30 Oct, 2020
Can you test in v6? Would rather not have to rebuild the form.
Max_admin Max_admin 18 Nov, 2020
how many fields in your form ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
jl jlundmark 02 Feb, 2021
Hi there, this is still an issue. I purchased the product for several sites and do expect it to work properly. I've had to limit to one file OR set it to required but that is not a solution, it's a workaround. Shouldn't need to rebuild large forms which is very time consuming to get it to function properly.
This topic is locked and no more replies can be posted.