Moodle plugins directory: Contact Form | Moodle.org
Contact Form
The Contact Form plugin for Moodle processes information submitted through a custom web form, sending it by email to the site's support email address, if defined, or to the primary system administrator.
Examples uses for this plugin include:
- Contact us form.
- Support request form.
- Request a course form.
- Information request form.
- Lead generation form.
- Membership application form.
Share with us how you use this plugin on your site.
Note: This is not a web form builder but a form processor. You must have some knowledge of how to create HTML forms or at the very least be able to cut and paste the example included in the README file.
Contact Form templates
If you are not familiar with HTML, consider using the following easy to use plain text {form...} tags included with the FilterCodes plugin. These will generate a Contact Form templates and therefore require that you have the FilterCodes plugin installed and activated.
- {formquickquestion} : Adds a "quick question" form to your course. Form includes Subject and Message fields. Note: User must be logged in or the form will not be displayed.
- {formcontactus} : Adds a "Contact Us" form to your site (example: in a page). Form includes Name, Email address, Subject and Message fields.
- {formcourserequest} : Adds a "Course Request" form to your site (example: in a page). Unlike Moodle's request-a-course feature where you can request to create your own course, this tag allows users to request that a course they are interested in be created. Could also be used to request to take a course. Form includes Name, Email address, Course name, Course Description.
- {formsupport} : Adds a "Support Request" form to your site (example: in a page). Form includes Name, Email address, pre-determined Subject, specific Subject, URL and Message fields.
- {formcheckin} : Adds a "I'm here!" button to your to your course. Form does not include any other fields. Note: User must be logged in or the button will not be displayed.
The initial work for this project was sponsored by the kind folk at l'Action ontarienne contre la violence aux femmes. Contact Form benefits from ongoing development by TNG Consulting Inc..
I am going to review your plugin to see if it is ready to be published.
Thanks!
I've installed it on our Moodle, but it's not an Activity/Resource or a Block....
We are setting up a new course and this plugin would be ideal for the parents of the kids to use the Contact Form.
Cheers
bobby
This plugin is for administrators with a little knowledge of HTML forms. As you've already noticed, there is no special activity, resource or block for this plugin. It just uses a regular Moodle page or HTML block. Until I update the documentation to make the setup process a little clearer, the following steps should hopefully get you started:
1. Use the "More documentation on this plugin" link on the plugin's page to access the documentation. A copy of the documentation is also included with the plugin.
2. Scroll down to the "Usage & Settings" section. There you will find an example of HTML code for a Contact Us form. Copy this to your clipboard.
3. Create a new Moodle page or HTML block on your Moodle site where you will want the form to appear.
4. IMPORTANT: Switch to the Source Code view in the editor and then paste the form code you copied in step 2 above.
5. Save your changes.
That's it. Additional examples of forms are available on the plugin's GitHub Wiki. You can of course customize it to suit your particular requirements but be sure to do so in the Source Code view in the editor. Consult the plugin's documentation as there are certain elements of the form that must be present in order for it to work. The documentation also includes helpful troubleshooting information.
Please feel free to follow up with questions using the recently added forum "Discussion" link available on the plugin's page.
Best regards,
Michael
Hopefully the explanation will help others in setting this up as well
Can I suggest to add an option that directs the emails generated by the created contact forms to someone other than the Moodle admin?
It would be great if they were sent to a specific email address, i.e. the correct person in the department, rather than admin (especially as this one would be coming from parents). I can't really set up an office admin to get the Moodle admin mail!!
Thanks for the help
Regards
bobby