-
- 3 Posts
I am attempting to make an addition to my internal site here where I’d like my users to be able to select a pdf from a drop down list and have it included in the email that gets sent out. Everything I’ve seen so far involves uploading the file from the form, not using one that’s already on the server.
can anyone be of assistance on this? I’ve got the emails working and when i use the code for uploading a file it sends as an attachment file. So I know the backend stuff is working...
Anyways, if I could get some help i’d be forever grateful!
Here’s my thinking, but I am not getting anywhere with it... The file i’m trying to select and send as an attachment is in the root of the www folder, called "UserGuide.pdf" in the future I would have like 20 files in there... anyways, can someone help? as you can see i tried numerous ways of setting the value etc....
<label>
Select your form:
<select name="contact_attachment" value="[[!+fi.contact_attachment]]">
<option value="">Select an option...</option>
<option value=’./UserGuide.pdf’ [[!+fi.contact_attachment:FormItIsSelected=`one`]]>One</option>
<option value="UserGuide.pdf" [[!+fi.contact_attachment:FormItIsSelected=`two`]]>Two</option>
<option value=UserGuide.pdf [[!+fi.contact_attachment:FormItIsSelected=`three`]]>Three</option>
</select>
</label>
Thanks
-
- 3 Posts
so is there no way to include a drop down with a file list to attach? i keep trying various things and am not having any luck.
I believe i must just be missing something... anyone care to chime in?
-
- 24,544 Posts
Is this form in the front end?
What, exactly, is happening when you try that?
-
- 24,544 Posts
Me too (stumped). Maybe someone else who has done it can chime in.