I was wondering if there was a way I might be able to provide custom (and unobtrusive) messages when submitting the contact form (v4.1) without having to modify the JS?
For example, I'm using https://formspree.io/ to provide email services. It's very simple, but the responses are slightly different than what the functions.js code seems to need.
For example, the response from a successful contact submission is:
{ 'success': 'email sent', '_next':'/redirect_page'}
I was hoping I might be able to set a data-attribute on an element in the markup and pull the necessary messaging off that.
For example:
<div class="contact-form-result" data-success-msg="Email Sent!" data-error-msg="Try again!"></div>
Anyway, if there is a known way of customizing the messages without changing the response of the email service (out of my control) and the template JS, please let me know!
Thanks!
Aaron.
