The add on collective.easyform
adds Plone content types for form creation.
EasyForm provides a Plone form builder through-the-web using fields, widgets, actions and validators (based on Dexterity).
Form input can be saved or emailed. A simple and user-friendly interface allows non-programmers to create custom forms.
Note: This Plone package is similar to Archetypes based Products.PloneFormGen for Plone versions 1 to 4.
Dexterity is the default framework for building content types in Plone 5.
Install collective.easyform by adding it to your buildout:
[buildout]
...
eggs =
collective.easyform
Run buildout:
bin/buildout
The last step is to activate EasyForm
in the Control Panel.
- Choose EasyForm from the toolbars 'Add new' menu. Insert form title, description and other settings.
- Add fields or fieldsets to create a unique form that will meet your particular requirements.
There are enough basic field types to satisfy any demands:
- File Upload,
- Text line (String),
- Integer,
- Yes/No,
- Date, Date/Time,
- Floating-point number,
- Choice,
- Rich Text,
- Image,
- Multiple Choice,
- Text,
- Password,
- ReСaptcha.
- Continue to customize form by setting the order of fields, defining required and hidden ones, choosing validator, if necessary, and other field type specific settings.
Click on the picture below for a short introduction video:
Install collective.easyform
with the recaptcha
extra:
[buildout]
...
eggs =
collective.easyform [recaptcha]
And run buildout and install EasyForm as described above.
Then go to the EasyFrom controlpanel (/@@easyform-controlpanel
) and add the "ReCaptcha" field to "Allowed Fields".
Alternatively, activate it by adding it as an registry.xml
entry for Generic Setup:
<record name="easyform.allowedFields">
<value purge="False">
<element>collective.easyform.fields.ReCaptcha</element>
</value>
</record>
Then add the ReCaptcha field to the forms where you want to use it.
As field type use ReCaptcha
and set require
to false.
As last step you might want to not include the recaptcha field in the thanks page and mailer action. To do that, edit the form, go to the "Thanks page" settings, disable "Show all fields" and then include only those you want. Likewise for the mailing: Open the form actions via the actions toolbar menu and edit the mailer settings accordingly.
You can choose between the following actions after form submission:
- Mailer
- DataStorage
- CustomScript
The mailer stores a HTML template for sending the results of the form. You can override it with a file named easyform_mail_body_default.pt in your site. If it is not found the default from the default_schemata directory of this package is taken. If you plan to override start with the the mail_body_default.pt file and make sure it is a valid pagetemplate.
If you want to help with the development (improvement, update, bug-fixing, ...) of collective.easyform
this is a great idea!
You can clone it or get access to the github-collective and work directly on the project.
Please do larger changes on a branch and submit a Pull Request.
Maintainer of collective.easyform
is the Plone Collective community.
We appreciate any contribution !
For new release, please contact one of the owners or maintainers mentioned at the Python Package Index page.
- Issue Tracker: https://github.com/collective/collective.easyform/issues
- Source Code: https://github.com/collective/collective.easyform
The project is licensed under the GPLv2.
- 1.x targets Plone 4.x
- 2.x targets Plone 5.x onwards