Hi,
I have a form with a name called “quick_contact” and I am trying to execute some javascript when this form submission has completed. It is an AJAX form. However my callback is not triggered, can anyone see any issues? I have using CSCART 4.2.4
<script type=“text/javascript”>
$(document).ready(function(){
$.ceEvent('on', 'ce.formpost_quick_contact', function(form, elm) {
console.log(“post_form event”);
if (!e.html && $(“#enquiry_type”).val() == “Sale”){
console.log(“sales enquiry”);
ga('send','event','Email Lead',$(“#contact_email”).val(), $(“#contact_name”).val());
}
});
});
script>
Cheers…
Please try
```php
```
And do not forget to clear cache then
hi,
Addition of class “cm-ajax-force” should help however if not, please provide temporary FTP access via Personal Messager so our specialists check the issue for you.
best regards,
WSA team
Hi there, thanks for that… still not working, here is my code
```php
```
```php
Have a question? You can use the form below to send us a message
Name
Phone
Enquiry Type
Please select
Indoor
Outdoor
Enquiry Type
Please select
Sale
Service
File upload (JPG,PDF,PNG files only)
Message
```