Redirect from CF5 to CC5

How to redirect from a ChronoForms 5 form back to the calling page.

Overview

The issue occurred because constant values in the CF Redirect action were not enclosed in quotes, causing them to be misinterpreted as form variables.
Enclose any constant URL values in double quotes within the Redirect action settings, or use a Custom Code action with Joomla's application redirect method.

Answered
Ni NickOg 17 Mar, 2015
Hi
I am trying to force a form (payCourseBookings) to return a a connection from which it has been called.

      <td class='njjoCenter'>
        <a href="index.php?option=com_chronoforms5&chronoform=payCourseBookings&idReceipt=<?php echo $idReceipt; ?>&callingForm=<?php echo $callingForm;?>">
        <?php
        // show symbol according to pay status
        if ($row['mdlListCourseReceipts']['accountPaid']) {
          ?>
             <i class='fa fa-check'></i>
               <?php
             } else {
               ?>
            <i class='fa fa-times'></i>
            <?php
          }
          ?>
        </a>
        <?php
        ?>
      </td>


I have tried both Chrono Redirect & Connection Action.
[list]Chrono Redirect - which I understand should return one to the calling URL - does nothing.[/list]
[list]Connection Action will return if I set Save as the connection action but nothing if I leave it blank, use load or vew. In this particular case I don't want to use the Connection Save action[/list]

What am I doing wrong? what other Connection Actions are there other than Sace.

Nick
Ni NickOg 17 Mar, 2015
Further to that - I can't get the standard redirect to work

[attachment=0]chronredirect.jpg[/attachment]

I must be doing something wrong!

Nick
Gr GreyHead 17 Mar, 2015
Answer
Hi Nick,

For the CF ReDirect action check the Help text (which isn't too clear). If you want to use constant values then they need to be in "" otherwise they are treated as form variables.

Personally I'd probably use a Custom Code action and the Joomla! code:
<?php
$app = JFactory::getApplication();
$app->redirect(JUri::root().'index.php?. . .');
?>

Bob
Ni NickOg 17 Mar, 2015
Thanks Bob - I will give both a whirl. That Redirect URI did work very well in CF4.

Nick
Ni NickOg 17 Mar, 2015
That fixed it Bob - "" round constants.

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