'Contact Form 7 - Conditionally/Dynamically Attach Local Files to Email Based on Input Selection
I have a number of checkboxes that indicate the item that is ordered through our online order form system. For each item selected there is a corresponding .pdf file that is stored on our server that should be included in the email.
For instance, they would select three out of five of the checkboxes below and then the three .pdfs that go with those selections are attached to the email.
[checkbox SR-010-01]
[checkbox SR-010-02]
[checkbox SR-010-03]
[checkbox SR-010-04]
[checkbox SR-010-05]
Contact Form 7 allows for files to be attached as a default, but I can't seem to find a way to add them based on whatever selection is made.
Is there maybe a way to use the CF7 file upload system to upload files that already exist locally? There might be a Javascript based solution that way.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
