Contact Form

General plugins (Local) ::: local_contact
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.
Latest release:
5461 sites
1k downloads
99 fans
Current versions available: 1

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..

Potential privacy issues

Reminder: Email message protocols may cross the Internet and store messages on mail servers in unencrypted plain text. If you are sending messages outside of your local area network, it is highly recommended that you do not use this plugin to collect sensitive information such as social insurance or credit card numbers. It has nothing to do with this plugin's functionality but just with the way email protocols work. This plugin on its own does not store any information - anywhere.

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2

Contributors

Michael Milette (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Michael Milette
    Thu, 18 June 2020, 8:12 PM
    Hi Balazs, thank you for asking your question again. I did see your other message in my notifications but I think the site must have deleted it due to the source code because I could not find it anywhere.

    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.
  • Pedro Perez
    Sat, 20 June 2020, 11:39 AM
    Hi Michael,

    Is it possible to use it to send to an external email and customize the names of the fields?
  • Michael Milette
    Sat, 20 June 2020, 12:42 PM
    Hi Pedro,

    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
  • Balazs DaVinci
    Mon, 22 June 2020, 5:14 PM
    Hallo 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

  • Michael Milette
    Mon, 22 June 2020, 10:20 PM
    Hello Balazs, is it just {wwwroot} or are none of the FilterCode tags working?
  • Denis K
    Tue, 4 Aug 2020, 7:56 PM
    Please help, you need to make the field from the form the subject of the message. Thanks.
  • Michael Milette
    Wed, 5 Aug 2020, 1:25 AM
    Hi Denis,

    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
  • Maryam Behandish
    Mon, 14 Sept 2020, 1:40 AM
    Hello. I've put up everything as suggested. But once the send button is pressed, an error occurs saying sess key is missing. Can someone help please? Thanks.
  • A Coloradian who was sucked into facebook against his wishes
    Mon, 14 Sept 2020, 2:12 AM
    I would like to show a link, not the entire form, on the front page. I tried saving the html "contract us" form as a static page, but that did not work. I could link to the page, but it would not accept input.
  • cyber sec
    Tue, 15 Sept 2020, 12:46 AM
    Keep getting this error: Forbidden. "sesskey" field is missing or contains an incorrect value.
  • Michael Milette
    Tue, 15 Sept 2020, 7:45 PM
    The answer to the sesskey question is included in the documentation. See:
    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
  • cyber sec
    Wed, 16 Sept 2020, 11:44 PM
    I am still having sesskey issues. I am fairly sure the /local/contact/index.php file is being found. The problem is not with the "form action" line. This might be a bug.
  • Ekaggata Technologies
    Thu, 17 Sept 2020, 4:45 PM
    Hi - Will it work with Moodle 3.9? I installed but i cant see the text box field to type anything.
  • Michael Milette
    Mon, 21 Sept 2020, 3:50 AM
    Hi cyber sec, I highly doubt it is a bug. This plugin is used on almost 2000 sites around the world. If sesskey was actually an issue, it would affect everyone. Please see my comment from September 15, 2020.
  • Michael Milette
    Mon, 21 Sept 2020, 3:55 AM
    Hi Ekkaggata Technologies. It is indeed compatible with Moodle 3.9 and will be indicated as such shortly. I am not sure what text box field you are expecting to see. This is a form processor, not a form builder. Please read the documentation on how to create a form and then ask any questions you might have in the discussion forum. Links to both of these are included in the Useful Links section of the Contact Form plugin page.

    Best regards,

    Michael
Please login to post comments