problem with form with file upload

shikamu 20 Dec, 2014
Hello,

I've got a simple form that has 3 file upload fields, none of which are mandatory (i.e. the forms should be able to be submitted even if the user doesn't add any files). Also the form is configured to display a message upon submission and send an email with the attachments.
Unfortunately the form only gets properly submitted if there is at least one of the 3 file upload fields filled up. I'm not sure what I'm doing wrong. See the attached files for what I thought might be some useful starting point.

Any idea?

Thanks
GreyHead 20 Dec, 2014
Answer
Hi shikamu,

You have the Email and Thanks Message actions in the On Success box of the Upload Files action so they only run if a file upload is successful i.e. there is at least one file to upload.

Leave the On Success boxes empty and put the following actions after the Upload files action instead.

Bob

PS I'd do the same with the Check Captcha action to to avoid unnecessary nesting:
Check Captcha
  On success - empty
  On Fail - Event Loop
Upload Files
  On success - empty
  On Fail - Display Message
Email
Display Message
Debugger
shikamu 20 Dec, 2014
ah yes, of course😉 Thanks!
This topic is locked and no more replies can be posted.