formmailer tips
NOTE:
Please use the FormFolder for all future forms processing.
How can I send an additional e-mail to the address in the e-mail field?
Go to tab 'edit' -> sub-tab 'Mail Header' and fill in one of the cc or bcc lines: python:request.get('field_email')
How can I send an additional e-mail to the currently logged in user?
Got to tab 'edit' -> sub-tab 'Mail Header' and fill in one of the cc or bcc lines: python:member.getProperty('email','')
How can I have files as e-mail attachments?
Add a FileField in your form.
Add a 'reset' button
Login
go to your form
Click on the green 'edit' tab
Click on the 'Web Form' link
Scroll to the bottom of the page, and enter in the information for a reset button:
'(reset)|reset|reset|context'
Save the form
Get the userId of the person who is submitting a form
Create your form
Set the workflow to Authenticated Member
Select the tab titled, "modify form (zmi)"
Add a new field of type 'StringField'
- Give it an appropriate name and title such as
- Name: submitterID
- Title: Submitter ID
Click the 'Add and Edit' button
Check the checkbox for 'Hidden'
Uncheck the checkbox for 'Required'
Scroll to the bottom and click the 'Save Changes' button
Select the 'TALES' tab at the top of the page
- Paste the following into the 'Default' field:
- python:here.portal_membership.getAuthenticatedMember().getUserName()
Scroll to the bottom and click the 'Save Changes' button
Click on the name of your form in the breadcrumbs near the top of the page under the tabs
Click the 'View' tab
The field is now included as a hidden element of your form.

