contact-form
contact-form copied to clipboard
Success key and value not being returned in AJAX submission response
Description
In this plugin's version 2 for Craft 3 the AJAX response contained the key success which could be tested in the response
via if (response.success) { ... }
, this is still present in the docs for v3 for Craft 4, however on submission reponse.success
returns undefined
as it does not exist.
Steps to reproduce
- Create a form
- Setup AJAX (as per the docs)
- Submit the form
- Get the error
Additional info
- Craft version: 4.0.2
- PHP version: 8.1
- Contact form plugin version: 3.0.0