User tests: Successful: Unsuccessful:
This contact form module has been created for a session given at Joomla Day USA.
The aim of that session was to show how AI could help create such a module.
It has been modified to comply with Joomla's AI policy and ensure it follows the Joomla code standards.
This is brand new module for the Contacts component. It offers the same functionality as the contact form for a contact view.
However, the form is embedded in a module and can therefore be placed anywhere on a page.
It uses Ajax to prevent a page refresh upon sending the email.
Make sure there is at least one contact in the Contacts component.
You need a captcha solution selected in the global configuration of the site (Site tab) to test captcha with the form.
Go to Content -> Site Modules -> Select 'New' -> Select 'Contact Form'.
Select 'Toggle Inline Help'. There is no user documentation at the time of this writing.
You can create several modules on a same page.
When testing the default captcha option: this tells the module to use the Contacts component settings. So the form should show a recaptcha or not depending on the choices made at the Contacts component level.
Make sure that fields are properly validated and feedback is returned (for email, for instance, you should not be able to send the form if it is not a proper formatted email address).
Try entering loooooooooong strings in the fields. The page should not crash.
Try adding custom fields for the Contacts component.
Go to Components -> Contacts -> Fields -> Select 'Mail' in the select box below 'New'.
Create the Text field 'Company'. Make sure the permission 'Edit Custom Field Value' is set to allowed for 'Public'.
This field should show in the contact form module and the field should be editable.
Emails are sent through the contacts Mail Template 'Contacts: Contact Form Mail'.
If a contact has no email address but is linked to a user, the email should be sent to the user's email address.
If a contact has no email address and is not linked to a user, the form should fail gracefully.
No contact form functionality in a module.
Contact form functionality in a module.
Please select:
Documentation link for guide.joomla.org: TODO
No documentation changes for guide.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
Cypress tests:
| Status | New | ⇒ | Pending |
| Category | ⇒ | Language & Strings JavaScript Modules Front End Unit Tests |
| Labels |
Added:
Unit/System Tests
Language Change
PR-6.2-dev
|
||
| Title |
|
||||||
pr done on your branch
| Labels |
Added:
Feature
|
||
| Category | Language & Strings JavaScript Modules Front End Unit Tests | ⇒ | SQL Administration com_admin Postgresql JavaScript Repository Installation Language & Strings Libraries Modules Front End Unit Tests |
pr done on your branch
Thank you Brian @brianteeman, I have added the missing pieces, thank you very much for your help.
thanks for this. its a module that many people have wanted for a very long time and there is NO third party contact module that is directly connected to the contact component and truly joomla native
there are quite a few changes needed for it to be included in core
I will do those as a pr against your branch sometime this weekend