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

  • Steve Marsh
    Mon, 10 May 2021, 6:10 PM
    Hi Michael

    Sorry if I posted in the wrong place, I just thought that since other questions had been asked here and it was directly related to this pluging that this was the best place to post any problems, again sorry for that.

    I understand that the html code defacto is in the yyyy-mm-dd format but as in the link you posted the output is in uk format as 22/07/2018. On our website on the form it shows dd/mm/yyyy and thought it is something that might have been able to change within the plugin for the displayed output but if that is not the case I understand and will have to live with that.

    On the message, I did have a look at the customisation prior to posting but didn't come across it so must have been using the wrong search strings or in the wrong place I guess and will have another look into that one.

    Having said all that I appreciate the help you have given, many thanks for that.

    Regards
    Steve

  • Michael Milette
    Tue, 11 May 2021, 11:41 PM
    No worries Steve. Hope you found the information useful. Advantages of posting in the forums is that you can get answers from more people who may come up with ideas I haven't even thought of. People also post screenshots which can be helpful to understand instructions. Anyway, I appreciate your comments and will include instructions on how to customize these strings in a future release of Contact for Moodle.
  • Steve Marsh
    Wed, 12 May 2021, 3:15 AM
    Hi Michael

    Yes found the info most useful and helpful, after revisiting the language customisation again managed to find the string and changed the wording as required.

    We will have to live with the yyyy/mm/dd date format as the form works very well for our needs and hope the users remember to book the dates correctly when the email comes through the system.

    Again Many Thanks for the help.
    Regards
    Steve
  • Charles Duncan
    Wed, 2 June 2021, 4:48 PM
    I have implemented Contact Form in Moodle 3.9. It was easy to install and set up and is working well. The only problem is that emails are only being sent if the person using the form has administrator access to Moodle. For teachers, students, guests and non-logged-in users everything appears to work but the email never arrives. I am at a loss as to where to look and I suspect it may be related to some other setting outside Contact Form. Any suggestions?
  • Michael Milette
    Wed, 2 June 2021, 8:49 PM
    Hi Charles, thank you for your feedback. I am actually grateful for your comments. You see, I recently experienced the same issue with the Multi-Factor Authentication plugin. Emails were delivered correctly for admin accounts but not for teacher account. I didn't investigate further but didn't realize that it might also happening with Contact Form. I will definitely look into it and figure it out now that I know the issue is affecting more than one plugin including my own.

    If you or anyone else would like to be notified about updates on this issue, please leave a comment on the following ticket:
    https://github.com/michael-milette/moodle-local_contact/issues/62
  • Michael Milette
    Wed, 2 June 2021, 9:19 PM
    I just ran some tests and determined that emails are sent regardless of whether the user is logged-in or not. I will continue to investigate but will only post updates to https://github.com/michael-milette/moodle-local_contact/issues/62 .
  • Ruth Ruane
    Sun, 30 Jan 2022, 11:51 PM
    Hi Michael, I can't believe I found the perfect contact form for my moodle website. I am really impressed with how simple it is. I am having an issue with the submit button in the theme I am using, I have contacted the support team for the theme but my support is out of date, I have renewed it a few times and am broke at the moment so I can't really afford to renew it to ask this question. I seem to have found the settings for the submit button but when I change them it has no effect on the look of the button to the front end user. I have cleared caches on browser but it just doesn't seem to be changing anything. Is there any work around for me? All the contact form templates uses the Submit button so it seems there's no way of getting around using it. Thanks again for an amazing plugin!
  • Michael Milette
    Mon, 31 Jan 2022, 2:16 AM
    Hi Ruth, please head over to https://github.com/michael-milette/moodle-local_contact/issues/ and I will see what can be done to help you out. If possible, please include a link to the page containing your form so that I can take a look.

    Best regards,

    Michael
  • Dan Jeffries
    Fri, 1 July 2022, 9:35 PM
    Thanks for a great plugin! This and filter codes are the best.

    Is there any way to make the CONTINUE button redirect back to the course page instead of going to the front page? Thanks!
  • Michael Milette
    Tue, 5 July 2022, 12:03 AM
    Hi Dan, not at the moment but if you submit your suggestion for the "continue" button as a Feature Request at https://github.com/michael-milette/moodle-local_contact/issues and I will give it some thought.
  • andrea Forneris
    Wed, 4 Jan 2023, 9:01 PM
    Just a question (the support thread is closed): can I simply make a "form" that automatically send a mail with a "enrollement request" with the user and course details? like the {formcheckin} , or I have to simply translate the {formcheckin} string? thanks
  • Michael Milette
    Fri, 6 Jan 2023, 5:00 AM
    Hi Andrea,

    Thanks for letting me know about the discussion forum. I will look into that.

    The {formcheckin} tag is a pre-configured form provided for ease of use. You can definitely create your own and have a few options:

    1) You can just add the HTML for the form to any page, label, block and other places. Examples are available in the Wiki:
    https://github.com/michael-milette/moodle-local_contact/wiki/HTML-Form-Templates

    2) If you plan on reusing the form, you can edit one of the existing pre-configured tags. More information on that is available at:

    https://github.com/michael-milette/moodle-filter_filtercodes/blob/master/README.md#customizing-or-translating-the-forms-generated-by-the-form-tags

    3) You can create your own tag, in FilterCodes settings, containing the form. More information on that can be found at https://github.com/michael-milette/moodle-filter_filtercodes/blob/master/README.md#define-your-own-custom-global-tags

    Hope you find this helpful!

    Best regards,

    Michael
  • Zabelle Motte
    Tue, 28 Mar 2023, 4:48 PM
    Thanks a lot Mikael for this very interresting plugin that will enable us to easily have a centralized approach for our helpdesk for our different Moodle.
    We want however this functionnality to be reserved to Moodle admin. Is it possible ? I do not see any permission associated to form creation. This could be an interresting evolution that would make the plugin more configurable.

    Kisses

    Zabelle
  • Blair F.
    Thu, 4 May 2023, 6:10 AM
    Still loving this plugin, tremendously. I'm making some additions to an existing HTML block, which previously included one form, but I'm adding a second one below the existing one. The user will use one form or the other, depending on their current need. However, I'm getting the sesskey error that Michael has previously explained. It seems like I cannot use two {formsesskey}s on the same HTML page, even if they are different forms, is that correct?

    Here's a simplification of what I'm trying to accomplish, which is obviously not proper syntax because that gets stripped form this post:

    FORM 1
    form id="Form1" action="{wwwroot}/local/contact/index.php" method="post"
    fieldset
    input
    input
    formsesskey
    /fieldset
    div
    input type="submit" value="SUBMIT FORM 1"
    /div
    /form
    END FORM 1

    FORM 2
    form id="Form1" action="{wwwroot}/local/contact/index.php" method="post"
    fieldset
    input
    input
    formsesskey
    /fieldset
    div
    input type="submit" value="SUBMIT FORM 2"
    /div
    /form
    END FORM 2
  • Michael Milette
    Sun, 7 May 2023, 3:33 AM
    Hi Zabelle,

    Thank you for your question. Contact Form is a webform form processor, not a form creator or editor. It has nothing to do with the creation of a form. It is not because of this plugin that you can create forms on your Moodle site. It just gives you the ability to process the content and send it as an email.

    Creating a form is something you do in the HTML view of the Atto or TinyMCE editors.

    You might be able to limit a person's ability to create forms if you remove the editor's icon to switch to HTML view.
Please login to post comments