Getting Callbacks to work
Permalink Browser Info Environment
We can't get the callback function to work as described here:
https://marketplace.concretecms.com/marketplace/addons/ajax-for-expr...
We're running your code in a document ready function, the callback doesn't happen and when we look at the obj value it returns 'false'.
https://marketplace.concretecms.com/marketplace/addons/ajax-for-expr...
We're running your code in a document ready function, the callback doesn't happen and when we look at the obj value it returns 'false'.
Type: | Ticket |
---|---|
Status: | In Progress |
So the issue is the objects are set also using a document ready function so your code is running too early as the core code runs probably last.
One way would be to make sure your code comes after the main script on the page.
I am, however, looking into adding an event in the main script that could be used instead. If you're not in a hurry I should be able to have something working in a few days.
Out of curiosity, what functionality are you trying to put in place?
One way would be to make sure your code comes after the main script on the page.
I am, however, looking into adding an event in the main script that could be used instead. If you're not in a hurry I should be able to have something working in a few days.
Out of curiosity, what functionality are you trying to put in place?
That makes sense - happy to wait for the new event.
We have a couple of things to add after a successful submission, a tag for Google Tag Manager and also code that takes the form data and passes it on to Freshsales.
ATM the Freshsales code catches the form submission and passes all the spam responses over as well as the genuine ones so we're hoping that by using this with Anti Spam Master we'll be able to stop that happening.
We have a couple of things to add after a successful submission, a tag for Google Tag Manager and also code that takes the form data and passes it on to Freshsales.
ATM the Freshsales code catches the form submission and passes all the spam responses over as well as the genuine ones so we're hoping that by using this with Anti Spam Master we'll be able to stop that happening.
Hello. I updated the package and the documentation. Here's the link:
https://marketplace.concretecms.com/marketplace/addons/ajax-for-expr...
I hope this works for you. Please let me know if there's anything else.
https://marketplace.concretecms.com/marketplace/addons/ajax-for-expr...
I hope this works for you. Please let me know if there's anything else.
Can you give me a copy of your code please?