1

I am having a bit of a issue when it comes to using MXNotify module and submitting a form with safecracker.

What's happening is if all fields are correct, it will save the post, and send the email, but it breaks my javascript submit, as it does a 302 redirect, and doesn't respond with the JSON my submit function is expecting. Therefore I can't use ajax to show the success. Are there any ways to still get my custom email sent on updating this channel, and still get a JSON response on success?

If this helps:

{exp:safecracker channel="deal_registration" return="deal-registration" error_handling="inline" json="yes" include_jquery="no" class="registration-form" safecracker_head="no"}

The URL is site.com/deal-registration and it posts back to it self to show the AJAX responses.

  • If you disable MX Notify, does it work properly? – Jeremy Gimbel Aug 13 '13 at 18:59
  • yes it does.. that's why I know it's the issue. I just need it to send customized auto responders. But if postmaster does the job and doesn't interfere with the use of inserting a record via safecracker then I'll use that.. – mattyb Aug 13 '13 at 19:36
1

I'm not all that familiar with MX Notify, but I can't imagine why it's impacting the response given.

You might try using Objective HTML's Postmaster instead. Being a commercial add-on it'll offer better support should you have any problems with it.

| improve this answer | |
  • MX Notify, listens for changes. devot-ee.com/add-ons/mx-notify-control. So for what I am doing.. If it's successful it gets a 302 and the data coming back is not in the format it needs to be. So it adds the record and sends the email, but I can't clean up the front end. If I use the return parameter, I don't think that will work on error. – mattyb Aug 13 '13 at 18:09
  • Seems postmaster doesn't let me send a new registered user from the CP their login credentials, at-least the live preview isn't parsing the variables MX did. sigh :( – mattyb Aug 13 '13 at 20:37
  • Let me know if you have any questions in regards to getting Postmaster setup. Email support@objectivehtml for details, and I am happy to get you pointed in the right direction. – Justin Kimbrell Aug 14 '13 at 16:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.