Drupal is a registered trademark of Dries Buytaert
Search API Solr 4.4.0 Minor update available for module search_api_solr (4.4.0). Page Manager 8.x-4.0 Major update available for module page_manager (8.x-4.0). Trash 3.1.0-beta2 New beta version released for module trash (3.1.0-beta2). Commerce AutoSKU 3.0.1 Minor update available for module commerce_autosku (3.0.1). Custom Field 4.0.10 Minor update available for module custom_field (4.0.10). Alternative login ID & display names 2.0.12 Minor update available for module alt_login (2.0.12). EntityReference UUID 3.0.1 Minor update available for module entity_reference_uuid (3.0.1). LocalGov Publications Importer 1.1.1 Minor update available for module localgov_publications_importer (1.1.1). Configuration Override Warn 8.x-1.6 Module config_override_warn updated after 10 months of inactivity (8.x-1.6). Table Alternate Rows Module table_altrow crossed 1,000 active installs.

This module allows the core Contact form to be submitted without reloading the page using AJAX. It offers options to customize the confirmation message displayed after submission, including showing default messages, node content, custom text, or leaving the form empty. Advanced settings allow for customizing where the form and its response are rendered.

Contact Ajax implements ajax submission for core Contact form in Drupal 8.

How it works

After enable the module, each contact form will show a checkbox "Use ajax".
When this chebox is enabled the contact form will show you another option "On submit load" with these options:

  • Default message
  • Node content
  • Custom message
  • Empty form

This module could help you if:

- you need to customize the confirmation message
- you need to submit a contact form without reload the page.
- you want load a custom text or another node after form submission.

Advanced settings:

- customize the wrapper id where the form is rendered.
- select a different container (different from the wrapper id) to render the ajax response.

Suggested modules

- contact_storage (https://www.drupal.org/project/contact_storage)
- honeypot (https://www.drupal.org/project/honeypot)

Features request, bug report and suggestions are welcome!

Activity

Total releases
1
First release
Apr 2026
Latest release
3 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
8.x-2.1 Stable Apr 23, 2026