Forums

dynamic arguments in the redirect url for Acajoom? [SOLVED]

acajoom 04 May, 2009
Hi,

You have a feature to redirect the user to an other url after submitting the form.
Is it possible to add arguments to it which are replaced by the value filled in the form?
Ex : index.php?option=com_acajoom&act=subscribe&email={email}&name={name}
or maybe index.php?option=com_acajoom&act=subscribe&email=[email]&name=[name] ?

If so, that would be so easy to integrate ChronoForms with the Acajoom component without need to use the CURL Plugin... (which is quite complicated for a newbie)

Some of our users (and so yours too) would like to integrate ChronoForms with Acajoom...
If the redirect url does not handle dynamic values, do you have some good screenshots of the CURL Plugin configuration for Acajoom that we could add to our official documentation?

Adrien
(Acajoom team)
GreyHead 04 May, 2009
Hi Adrien,

Yes we do, its fairly simple to set a custom URL. There's a new release with some changes in the codebase so I'm not completely confident of the code without checking. I think that putting this into one of the OnSubmit boxes will do the trick:
<?php
$email = JRequest::getVar('email', '', 'post');
$email = JRequest::getVar('name', '', 'post');
$MyForm->formrow->redirecturl = JURI::base()."index.php?option=com_acajoom&act=subscriber&email=$email&name=$name";
?>

It's possible that some urlencoding is required to avoid spaces in the name I guess.

I think that some users wanted to come back to the ChronoForms form afterwards. IIIRC Acajoom supports a redirect url that could be added to the string.

It's late here now, I'll test in the morning.

Bob
acajoom 04 May, 2009
Hi Bob,

Thank you for the reply.
After a quick try using the code :
<?php
$email = JRequest::getVar('email', '', 'post');
$name = JRequest::getVar('name', '', 'post');
$MyForm->formrow->redirecturl = JURI::base()."index.php?option=com_acajoom&act=subscribe&listid=14&receive_html=1&email=$email&name=$name";
?>

It works as expected.

I guess it's the easiest solution to integrate with Acajoom... so I'm gonna add it to our doc, hopefully that will save some time for you and me in the future!😉


http://www.ijoobi.com/help/acajoom/subscription-via-url-or-via-an-external-form.html#chronoforms
This topic is locked and no more replies can be posted.