Forums

emailing form integrated with AEC

ivanji 27 Aug, 2010
Hi guys - it's my first time posting here and hoping to get an answer to the following.

I've been able to integrate AEC + Docman and Chronoform - they're working great together. The only problem now is that we wish to receive an email with the submitted subscription form (created in Chronoform and called 'subscription').

The redirect URL is pointing to this location /index.php?option=com_acctexp -which is perfect for me- but I noticed that now it's not sending the emails or storing the data in the database. I tried using the redirect plugin to make sure I the data is submitted to the connected table but it's not working.

How can I make sure data is stored and emailed? (without losing my working integration with AEC)

Please any info is appreciated. Thanks!
GreyHead 27 Aug, 2010
Hi ivanji,

The Redirect url is set to run after everything else so that should be OK.

Are you sure that you are using the ReDirect URL and not the OnSubmit URL?

Bob
ivanji 27 Aug, 2010
Thanks very much for your prompt response.

Yes, it's on the redirect URL field. Please see attached file. Please let me know if you have any recommendations.

Regards,

Ivan
GreyHead 27 Aug, 2010
Hi Ivan,

Odd . . .

By all means email or PM me the site URL and a SuperAdmin login and I'll take a quick look.

Bob
ivanji 27 Aug, 2010
Hi -

I just discovered that I don't need to have a Redirect URL, only by submitting the following hidden fields AEC is responding well. It assigns the user to the correct plan, etc. But still I'm unable to send or store the data.

<input type="hidden" name="task" value="subscribe" />
<input type="hidden" name="option" value="com_acctexp" />
<input type="hidden" name="usage" value="7" />
<input type="hidden" name="processor" value="free" />
<input type="hidden" name="recurring" value="0" />

If I remove the fields it sends and stores fine because the form doesn't go to AEC. Is there an event I could include in the onSubmit section to force it to email the results?. I don't mind if it doesnt save because AEC and Joomla are storing already the important data.

Thanks for your offer.
GreyHead 27 Aug, 2010
Hi Ivan,

If you use the OnSubmit URL then the info is sent directly to the URL; ChronoForms never sees it and cannot save the data or send emails.

To pass data only to the other extension use the CURL Plugin; to pass data and ReDirect the user use the ReDirect plugin.

Using a ReDirect URL will redirect the user but without the data.

Bob
This topic is locked and no more replies can be posted.