Jump to content

FrontendContact - Module for creating one or more contact forms on the frontend


Recommended Posts

This is the next module beside the FrontendLoginRegister module which is based on the FrontendForms module.

As the name suggests, it has been designed to easily create a contact form for your site with the following characteristics:

  • Fast and easy integration of a contact form inside a template by using only one line of code
  • Show/hide certain fields of the form depending on your preferences and needs
  • Beside the default fields you will be able to extend the form with additional fields if needed
  • Highly customizable (change order of fields, add custom CSS classes,...)
  • Run as many forms on one page as you want
  • Possibility to offer file upload to upload multiple files, which can be sent as attachments
  • Usage of all the benefits of FrontendForms (fe. CAPTCHA, various security settings,...)
  • Multi-language
  • IP of the sender will be send with the email too, so you can use it for IP-blocking if you will get a lot of spam from a certain IP

configuration.thumb.png.ffd876974daf9bd4410225f596aeed16.png

To render a complete working contact form, you will only need to add this line of code to your template:

echo $modules->get('FrontendContact')->render();

form.thumb.png.68979a50868c1f477f9c7a5bd89acd02.png

The output can differ from the image above, because it depends on your settings and customizations, but it will looks like similar to the form in the image.

This module is completely new and therefore alpha stage - so be aware of using it on live sites!

It works as expected in my tests, but it will need further testing.

You can download the module here: FrontendContact or you can install it via the Processwire upgrade-module from the module directory. Alternatively you will find all files inside GitHub.

You will also find a more detailed description on the the download page.

As always, please report issues or wishes here or directly on GitHub.

 

Thanks for testing!

  • Like 6
Link to comment
Share on other sites

Hello Juergen, I tried to install the module, but I have this error when I tried to add it from the admin :

Erreur d'analyse (parse): syntax error, unexpected 'string' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) (ligne 22 de site/modules/FrontendContact/FrontendContact.module) 

I also have this error when I tried to install the FrontendForms :

Erreur d'analyse (parse): syntax error, unexpected 'const' (T_CONST) (ligne 43 de site/modules/FrontendForms/FrontendForms.module) 

 

Link to comment
Share on other sites

Hello @Mfeuille

Thanks for reporting your issue!

Can you confirm that you have the required PHP version (8.0) installed. It seems that your system does not understand the union types on that lines. This is the case if you have a lower PHP version.

Best regards Jürgen

 

 

Link to comment
Share on other sites

  • 3 weeks later...

No other issues have been reported till now and I have tested the module once more and have fixed some problems. Now the module works as expected in my case without problems.

Today I have added the module to the module directory - please download it from there after it has been published.

Thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...