Forums

Redirect page not showing menus and Dynamic subject not working

kkurtz 03 Sep, 2014
This is two subjects.

I am rebuilding my forms for the new CF5 and Joomla 3.3.3 versions. They were working fine in CF4 and Joomla 2.5.9.

Subject 1: I have one form which is very simple. Check the box if you agree with the statement, then click submit. If the box is checked the user is redirected to a new page. However, that page will not display with the menus that are standard on the site. Is it because that page is not attached to a menu? If so, what do I need to do to get the menus to display?

Subject 2: On a different form I am trying to send a message with a dynamic subject. The subject should use on of the field names and then some static text. If I put the subject "{chapter_name} Template Request" in the Dynamic Subject box I get exactly that. If I put it in the Static Subject Box I get a blank subject.
And maybe this is Subject 2.5: I have a Display Message and it displays on a page with no menus so you have to use the back button to get back to the form. Any way to change this?

Thanks,
Karen Kurtz
GreyHead 04 Sep, 2014
HI Karen,

As a general comment, if you have two questions please add them in separate posts as that help readers who come along later.

1) I don't understand the question? How are you redirecting? What is the URL that is shown after the redirection? What do menus have to do with it exactly?

2) You can’t mix and match static and dynamic values in the Dynamic Subject box. Please see this FAQ - it's for CFv4 but should work in exactly the same way in CFv5.

Bob
kkurtz 04 Sep, 2014
Addressing the second subject - Dynamic emails:

I've read the FAQ and I can't get the Custom Code option to work. Here is the code I entered on the the action
<?php
$form->data['subject'] = "Public Website Template Request for {$form->data['chapter_name']}";
?>
The subject line on the email is blank.

As the FAQ said I put chapter_name (no brackets or quotes) in the dynamic subject field and the chapter name displayed, but the text didn't.

I also tried installing the free Email (GH) action, which I have used successfully before in CFv4. But it wouldn't install. Don't know if it was because I have CFv5 now.
GreyHead 04 Sep, 2014
Answer
Hi Karen,

The FAQ actually says to put subject in the Dynamic Subject box (not chapter_name). It should then work provided that the Custom Code action is before the Email action.

I'm afraid that the Email [GH] action is only for CFv4 so far. I have updated a couple of action to CFv5 but not that one yet.

Bob
kkurtz 04 Sep, 2014
Thanks. I guess I didn't read that very carefully. It's working fine now.

Thanks again for your help.

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