Products
ChronoForms
ChronoConnectivity
ChronoForums
Buy
FAQs
Forums
Contact
Blog
Buy Now
Sign in
You are here:
Home
Forums
ChronoForms Forums
ChronoForms Questions & Answers
Image upload, Captcha
...
16:21
February 26 2021, 16:21
Email only when Attachments
tshirley
,
October 27 2015, 23:01
Share this topic
1 - 2 of 2
1
T
tshirley
318
October 27 2015, 23:01
#352903
Hello,
I would like to send an email from a form only if the user attaches a file to the form.
Is there any way I can detect in an Event Switcher, if an attachment has been uploaded?
Cheers
Tim
GreyHead
65
October 28 2015, 10:05
#352921
Hi Tim,
Check the entries in $form->files - probably just the count is enough
<?php
if ( count($form->files > 0 ) {
echo 'file_uploaded';
}
?>
Bob
ChronoForms technical support
If you'd like to
buy me a coffee or two
, thank you very much
1 - 2 of 2
1
Products
ChronoForms
ChronoConnectivity
ChronoForums
Buy
FAQs
Forums
Contact
Blog
Username
Password
Remember Me
Forgot your password?
Forgot your username?
Create an account
I would like to send an email from a form only if the user attaches a file to the form.
Is there any way I can detect in an Event Switcher, if an attachment has been uploaded?
Cheers
Tim
Check the entries in $form->files - probably just the count is enough
Bob
If you'd like to buy me a coffee or two, thank you very much