Error with redirect

mholberg 24 May, 2011
Hi,

I created a form in which I want to send 1 data field to another Chronoform, and send the rest of the field by email and also save in DB table all the same time.

it appears if Redirect URL is used, the 1 field is is not passed to the second form.

And if Submit URL: is used, no emails are sent and no data is saved to a DB table.

It looks like the answer is no. Is there a work-around.

advice appreciated,
Mark
GreyHead 25 May, 2011
Hi Mark,

The 'static' ReDirect URL is fixed and so your variable is not included. You can though add a snippet into one of the OnSubmit Code boxes:
<?php
$some_value = JRequest::getString('some_value', 'default_value', 'post');
$myForm->formrow->redirecturl .= '&var_name='.$some_value;
?>

Bob
mholberg 01 Jun, 2011
Thank you for the reply.

Redirect worked very nicely - except when using SSL, IE throws a security warning because it's a redirect. Is there a way to enter an OnSubmit URL in the General Settings and still collect the form data through Chronoforms?

Otherwise it looks like the alternative is make the data collection form an intermediate step. Have that submit to a confirmation page, which then can be submitted directly to the hosted payment gateway. (neglected to mention this is a payment process).

Mark
GreyHead 01 Jun, 2011
Hi Mark,

Is there a way to enter an OnSubmit URL in the General Settings and still collect the form data through Chronoforms?

No, I'm afraid not. If you use the OnSubmit URL ChronoForms never sees the results and can do nothing with them

What info are you trying to pass here? You can set the ReDirect URL to have https://

Bob
mholberg 01 Jun, 2011
Bob,

I did set HTTPS: Think the issue is that the action is mysite.com, while the redirect points to payment-gateway.com. So IE (at least 8.0) sees it as a sneaky redirect.

thanks,
Mark
GreyHead 02 Jun, 2011
Hi Mark,

Hmmm Have you checked that there isn’t something else on the page giving the IE error. I'm not sure I understand why a different domain would make a difference.

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