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..
This issue has nothing to do with Contact form. Contact form is the form processor (i.e. only after you submit a form). At the stage where your form is being displayed, Contact Form is not yet involved.
Based on what I could see in your previous screenshot, it looks like Static Pages doesn't like the carriage returns in the middle of an HTML tag. You could try removing them and let me know how it goes. For further assistance with this issue, please report using the Bug Tracker link on the Contact Form plugin page.
Is it possible to use it to send to an external email and customize the names of the fields?
Yes to both of your questions.
External email address: There is an example in the README.md file under Optional Contact Form For Moodle Settings. Same idea except that you can just specify one name in a hidden field instead of using a dropdown list. You will still need to configure the email address in the plug-in's settings.
Labels for the fields: You can name the labels for the fields to anything you want in the HTML form.
Field names: You can use any field names you want. For multi-word field names, separate the words using underscores.
For the mandatory fields: You can rename these by customizing the language strings.
For more details on all of this, see the documentation found in the README.md file included with the plugin.
Best Regards,
Michael
thanks a lot for your answer. I have found one "solution" for my issue with the contact form (using it without Filter codes).
It seems that the filter codes are not working properly within "local_staticpage". I realized that, when I saw, that actually sending the form goes wrong because calling
the index.php does NOT succeed via "{wwwroot}/local/contact/index.php". When I change this to "/local/contact/index.php", then it works.
Then I am not using the Filter code {wwwroot} and just give the correct path directly.
Best Regards
Balazs
That is indeed what it does. However, if you are using Moodle in a different language, you may need to make some changes to the sample forms as the field names are language specific. For more information, please consult the README.md file included with the plugin or the "More documentation on this plugin" link found on the plugin's page on moodle.org. for more help, please post your questions in the discussion forum - link also on the plugin's page.
Best regards,
Michael
https://github.com/michael-milette/moodle-local_contact/blob/master/README.md
For additional help, please submit your questions to:
Discussion forums: https://moodle.org/mod/forum/discuss.php?d=352851
To report a bug, please submit your support request to:
Issue tracker: https://github.com/michael-milette/moodle-local_contact/issues/
For faster paid support, please contact me through my website at:
http://www.tngconsulting.ca/
Best regards,
Michael
Best regards,
Michael