Sumbit a Photo
A great way to help build your image library and connect with your members and supports is to ask them to send you photos of themselves or the places they enjoy.
Ingredients
- Nice introductory text
- Several string fields
- A file field
- Optional textarea field
- Mailer adapter
- Thank You adapter
Time to Build: 15 Minutes
If you need a primer on the basics of PloneFormGen, read this tutorial first, from ONE/Northwest
A great way to help build your image library and connect with your members and supports is to ask them to send you photos of themselves or the places they enjoy. With a Submit a Photo form, you can have PloneFormGen send an image file as an attachment in an email to a mailbox of your choice.
Steps
- Create a Form Folder - PloneFormGen should give
you an Email, Subject, and Comments field by default. Delete the fields that you don't want
- Add introductory content to the top of the form, encouraging people to send you an image. It's a good idea to indicate some parameters for the file: what file type do you want? Is there a size limit? What about intellectual property rights?
- Create String Fields for First Name, Last Name, Email, plus any other information you wish to gather
- Create a Textarea Field (optionally) for the form submitter to make comments about the image
- Create a File Field for people to attach the image file. Notice that you can set a size limit (in MB).
- Edit the Mailer Adapter and select a recipient for the form data. The idea here is that you're selecting someone to receive a notification when the form has been submitted, plus to receive the attached image file. You should also change the Subject to something more meaningful than "Form Submission" under the Message tab.
- Edit the Thank You Adapter to include a thank you message. You can also decide if you want the form data displayed on the thank you page or not.
Note about Saved Data Adapter: The adapter can collect all regular form data, but it cannot store files that are attached via the File field
by
Sam Knox
—
last modified
2009-04-30 10:58
All content on this site is licensed under a Creative Commons License.