Send an email only if a file is upload

By: Branislav Grubić | Asked: 06/16/2025
ForumsCategory: How-toSend an email only if a file is upload
Branislav Grubić asked 6 months ago

Hello everyone!
How can I make a form send an email only if a file is upload?
I'm trying to create an If statement in the following way:
"Do this if ANY of the following match: FILE UPLOAD FIELD - does not contain - ""
What am I doing wrong?
Thanks!

1 Answers
Rob LeVineRob LeVine Staff answered 6 months ago

How does an "if statement" fit into this? You can use the conditional logic with the email action and set it to something like "Do this action if any of the following match ".

Branislav Grubić
replied 6 months ago

My mistake, I meant conditional logic...
Form should sent email after submitting, only If file is uploaded.
Problem is that I don't know how to set the match.

Rob LeVineRob LeVine
Staff replied 6 months ago

The silly forum software cut off my answer. Set the field to be your file upload field, then "not equal" and then leave the value field blank.

Branislav Grubić
replied 6 months ago

It works, thanks a lot!

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right