I implemented the confirmation page and everything displays, except the buttons appear at to the right of the info rather than at the bottom. Also, there is no Back button - just Submit and Cancel buttons. What am I missing?
Forums
Confirmation Page Issue
Hi wibadd,
Please check the page HTML. Could be an unclosed div or table; it could be a CSS float that needs to be cleared. I think that the Cancel button is probably the 'Back' button (confirmed from the code).
Bob
Please check the page HTML. Could be an unclosed div or table; it could be a CSS float that needs to be cleared. I think that the Cancel button is probably the 'Back' button (confirmed from the code).
Bob
Hi jmarian1,
There's no full tutorial that I know of. There is a good example in the forums here but that was using an earlier version of CFv4 and Max has added some new features since then.
Bob
There's no full tutorial that I know of. There is a good example in the forums here but that was using an earlier version of CFv4 and Max has added some new features since then.
Bob
How do I get the button to read Back instead of Cancel? Seems strange that it defaults to a Cancel label when all the actions and instructions indicate it should be a Back button.
When I select the cancel button it returns me to a blank page even though I have a data to session action On Show for the confirmation page so that it retains user input. Do I need to put session to data in the On Back action?
When I select the cancel button it returns me to a blank page even though I have a data to session action On Show for the confirmation page so that it retains user input. Do I need to put session to data in the On Back action?
Hi wibadd,
The button text is hard-coded into the action :-( open administrator/components/com_chronoforms/form_actions/confirmation_page/cfaction_confirmation_page.php and edit these two lines
I'm not sure about re-loading the data I think you need to add a 'Session to Data' action in the On Load event of the form. This thread may help.
Bob
The button text is hard-coded into the action :-( open administrator/components/com_chronoforms/form_actions/confirmation_page/cfaction_confirmation_page.php and edit these two lines
<button type="submit" name="confirmation_page" value="_confirm">Submit</button>
<button type="submit" name="confirmation_page" value="_back">Cancel</button>
I'm not sure about re-loading the data I think you need to add a 'Session to Data' action in the On Load event of the form. This thread may help.
Bob
The buttons are working, and I have been able to get the confirmation page to work well without server side validation. Unfortunately, as soon as I add Custom Server Side Validation before the confirmation page, it doesn't display the validation errors and when back is selected it wipes out the data. I have tried several different ways of ordering the events without any success. It continues to not display the errors and the data is wiped out when I select back. Below are before and after CSSV event orders.
[attachment=1]Events Before SSV.png[/attachment]
[attachment=0]Events After SSV.png[/attachment]
Here is the code I am using in the CCSV:
<?php
if($_POST['state_province'] == " ") {
$form->validation_errors['state_province'] = "Select the state/province of your company/organization";
return false;
}
if ($_POST['level'] != "Silver" && empty($_POST['description'])) {
$form->validation_errors['description'] = "Please enter up to a 650 character (including spaces) description of your company/organization";
return false;
}
if (($_POST['level'] != "Silver" && empty($_POST['electricity'])) {
$form->validation_errors['electricity'] = "Please indicate if you want electricity at your sponsorship booth";
return false;
}
if ($_POST['cc_exp_month'] < 01 || $_POST['cc_exp_month'] > 12 ) {
$form->validation_errors['cc_exp_month'] = "Please enter the 2-digit numeric month (01 to 12) of credit card expiration";
return false;
}
if ($_POST['cc_exp_year'] < 2012 || $_POST['cc_exp_year'] > 2020 ) {
$form->validation_errors['cc_exp_year'] = "Please enter the 4-digit numeric year (i.e. - 2012) of credit card expiration";
return false;
}
$cc_exp_date = strtotime($_POST['cc_exp_year']."-".$_POST['cc_exp_month']."-28");
$today = strtotime(date("Y-m-d"));
if ($cc_exp_date < $today) {
$form->validation_errors['cc_exp_month'] = "The credit card has expired";
return false;
}
if ($_POST['level'] == "Silver") {
$form->data['description'] = "";
$form->data['electricity'] = "";
}
$sponsorship_amount;
if ($_POST['level'] == "Software") {
$sponsorship_amount = 2500;
} elseif ($_POST['level'] == "Gold") {
$sponsorship_amount = 1000;
} else {
$sponsorship_amount = 500;
}
$form->data['amount'] = $sponsorship_amount;
?>
[attachment=1]Events Before SSV.png[/attachment]
[attachment=0]Events After SSV.png[/attachment]
Here is the code I am using in the CCSV:
<?php
if($_POST['state_province'] == " ") {
$form->validation_errors['state_province'] = "Select the state/province of your company/organization";
return false;
}
if ($_POST['level'] != "Silver" && empty($_POST['description'])) {
$form->validation_errors['description'] = "Please enter up to a 650 character (including spaces) description of your company/organization";
return false;
}
if (($_POST['level'] != "Silver" && empty($_POST['electricity'])) {
$form->validation_errors['electricity'] = "Please indicate if you want electricity at your sponsorship booth";
return false;
}
if ($_POST['cc_exp_month'] < 01 || $_POST['cc_exp_month'] > 12 ) {
$form->validation_errors['cc_exp_month'] = "Please enter the 2-digit numeric month (01 to 12) of credit card expiration";
return false;
}
if ($_POST['cc_exp_year'] < 2012 || $_POST['cc_exp_year'] > 2020 ) {
$form->validation_errors['cc_exp_year'] = "Please enter the 4-digit numeric year (i.e. - 2012) of credit card expiration";
return false;
}
$cc_exp_date = strtotime($_POST['cc_exp_year']."-".$_POST['cc_exp_month']."-28");
$today = strtotime(date("Y-m-d"));
if ($cc_exp_date < $today) {
$form->validation_errors['cc_exp_month'] = "The credit card has expired";
return false;
}
if ($_POST['level'] == "Silver") {
$form->data['description'] = "";
$form->data['electricity'] = "";
}
$sponsorship_amount;
if ($_POST['level'] == "Software") {
$sponsorship_amount = 2500;
} elseif ($_POST['level'] == "Gold") {
$sponsorship_amount = 1000;
} else {
$sponsorship_amount = 500;
}
$form->data['amount'] = $sponsorship_amount;
?>
Hello,
Well, try to add the SSV in the "on Show" event of the "Confirmation page" action, and leave everything else as its in image#1, that should work I think, however, the on Complete event can still be accessed by posting the correct data (if you care for that).
If you care about security and about the multi page feature then simply use the "Multi page" instead, that will do it better in this situation🙂
Regards,
Max
Well, try to add the SSV in the "on Show" event of the "Confirmation page" action, and leave everything else as its in image#1, that should work I think, however, the on Complete event can still be accessed by posting the correct data (if you care for that).
If you care about security and about the multi page feature then simply use the "Multi page" instead, that will do it better in this situation🙂
Regards,
Max
The data is now being displayed when Back is selected, however, the SSV is not working. I assume that I would need to place the confirmation page inside of the SSV On Success event, but I read a postwhere Bob stated that the SSV On Success event should not be used. I would rather not have to create a multipage form if I can avoid it. Here is the current order of events.
[attachment=0]Events.png[/attachment]
[attachment=0]Events.png[/attachment]
I have been trying everything to get this to work for the past week with no success. I would really appreciate your help in troubleshooting it. I unnested the CCSV and Confirmation page events and now it will not even display the confirmation page. Based on a couple of different posts I have read, which include http://www.chronoengine.com/forums.html?cont=posts&f=26&t=66301 and http://www.chronoengine.com/forums.html?cont=posts&f=26&t=65226 - the recommendation is to unnest the events and leave On Success blank so that it continues to the next event in the parent. Unfortunately that is not working in this case. Everything is fine until I add CSSV and then nothing works correctly. The code I am using for CSSV is posted above and I validated the syntax with Netbeans. I really could use the help to get this working, otherwise I need to look for a different solution.
Hi Chad,
With the way the "Confirmation Page" action now works, I don't think that you can get this to work, I suggest that you use the "Multi page" instead, this will be much better, and more logical, if I would try to fix the "Confirmation page" action to work in this situation, then I would simply add a new setting to make the "on show" and the "on confirm" 2 different form events, and in this case it would simply be a "Multi page" form, so just do it using the "Multi page", what's the reason you don't want to try this ?
Regards,
Max
With the way the "Confirmation Page" action now works, I don't think that you can get this to work, I suggest that you use the "Multi page" instead, this will be much better, and more logical, if I would try to fix the "Confirmation page" action to work in this situation, then I would simply add a new setting to make the "on show" and the "on confirm" 2 different form events, and in this case it would simply be a "Multi page" form, so just do it using the "Multi page", what's the reason you don't want to try this ?
Regards,
Max
My apprehension is due to all the posts where other have not been able to get the multi page forms to work. Since there's no tutorial, I would need to try to piece everything together and figure it out on my own. I already have so much time invested and I need to deliver something in the next week or I need to find a new solution. I'm very concerned that I won't be able to get it figured out in the next week since I usually have to wait a day for responses to questions. If it ends up not working, I will be out of time to try a different solution.
This topic is locked and no more replies can be posted.