Contact Form icon

Contact Form

Maintained by Michael Milette
Contact Form is a Moodle plugin that allows your site to process and send information submitted through HTML web forms to the site's support email address or primary administrator if the support email address is not defined.
Price option: Free

Supports Moodle 3.0-5.2 See all versions
Latest release: 2 months ago
Installations: 4867
Downloads (last 90 days): 760

Frankenstyle name: local_contact
Local plugins

Comments

Comments are no longer open for new posts. Existing comments remain available to read.

Hi! I'm sorry to bother but I haven't been able to find an answer. I already installed and am able to see the contact form and it works great! The only issue is I would like the form to be sent after validating the recaptcha. I have already setup the recaptcha it's just that the message is sent whether or not they click on the recaptcha. I am new to configuration and don't know how to make this field mandatory or if there is more programming that needs to happen. TIA Any help is deeply appreciated.
Hi Michael,
Thank you for your quick responses. For some reason I did not notice it until now. I will check out the new version. And will place the usercase/suggestion into the bugtracker.
Gemma
Hi Bobby and Sheila,
As requested, I added an option to change the recipient according to a drop-down list. Alternatively, you can use a hidden 'recipient' field to specify the recipient. Be sure to consult the documentation on how to do this as it is a two step process. If you don't include a 'recipient' field in your form or you did not complete the two step process correctly, form submissions will still be sent to the site's support email address by default.
Hope this helps. I have some additional work to do with the plugin before it is released on moodle.org but feel free to download it from GitHub. The Source Control URL link on the plugin's page on Moodle.org will take you there. Please give this new version a try and let me know if you have any problems in the Discussion forum or the Bug Tracker. Both links are on the plugin's page on Moodle.org.
Best regards,
Michael
Hi Gemma,
There is a new version of the plugin available on GitHub that may be of interest to you. This latest version no longer requires the name and email address if the user is logged-in. While this doesn't insert the information into the form fields as you were hoping for, you can now just eliminate the two fields from your form instead. Hope this helps. I have some additional work to do with the plugin before it is released on moodle.org but feel free to download it from GitHub. You'll find a link for this on the plugin's page on Moodle.org called "Source control URL" which will take you there.
Hi Gemma,
Unfortunately this is not possible to insert this information into the form using this plugin since the form itself is just HTML. However, let me give your question some thought and get back to you. I have a couple of ideas that might work for your situation which I will need to develop.
To ensure that this doesn't get forgotten, please add your suggestions to the bug tracker.
Best regards,
Michael
Hi Michael,
I really like this plug-in. I am wondering.
Right now the fields name and email are required.
I know I will get questions regarding this, since users are already logged in.
I am wondering if there is a way to fill these fields automatically with the users profile details.
(maybe in away they can change it if they want).
Gemma
I would also like to use this form with the option of changing the recipient according to a drop-down list of subjects (eg Student Services, School fees, Exam related etc). This is so simple to do in normal forms, but I realise it's a different matter when in Moodle. Is the next release of the plugin coming soon?
For sure Bobby, really grateful for your suggestion. That would indeed be a useful feature. It was actually on the Future Releases list in the documentation at one point but must have been accidentally removed. I have created a request in the Bug Tracker so that I don't forget about it and will make sure it is included in an upcoming release (likely next release).
Got it. I set it up as an HTML Block so it's always visible on the page. Looks good....
Hopefully the explanation will help others in setting this up as well smile
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
Hi Bobby, thanks for the great question - it is not silly at all. smile
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
Probably a silly question, but how do I find this plugin to set it up?
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
Hi Michael Milette, thanks for sharing your plugin with the moodle community.
I am going to review your plugin to see if it is ready to be published.
Thanks!
Approval issue created: CONTRIB-6676