Hii everyone, after hours of forum reading, i can't find an entry, that could helping me to solve my problem...
I run Joomla 1.7 with Chronoforms 4.0 RC2.0.
I fail by a very simple thing i guess. I make a List with the wizard. I creat a couple of Checkboxes or Checkbox-Groups and add a submit-button at the end of the form.
Now i add by events --> on submit --> the Auto Server Side Validation. I want that the Validator checks the boxes and if just one box is checked (Onsucess) --> redirecting to url-1. If nothing is checked (Onfail) it should --> redirecting to url2.
So i put in the Auto Server Side Validation-settings the field "Not Empty" the first field name of my boxes. With only one field name everythings works fine. But if i add an second fieldname, nothing wokrs further.
I looked at: http://greyhead.net/chronoforms/chronoforms-adding-a-validated-checkbox
and http://tetlaw.id.au/view/javascript/really-easy-field-validation already, but don't get the problem.
Thanks for reply
I run Joomla 1.7 with Chronoforms 4.0 RC2.0.
I fail by a very simple thing i guess. I make a List with the wizard. I creat a couple of Checkboxes or Checkbox-Groups and add a submit-button at the end of the form.
Now i add by events --> on submit --> the Auto Server Side Validation. I want that the Validator checks the boxes and if just one box is checked (Onsucess) --> redirecting to url-1. If nothing is checked (Onfail) it should --> redirecting to url2.
So i put in the Auto Server Side Validation-settings the field "Not Empty" the first field name of my boxes. With only one field name everythings works fine. But if i add an second fieldname, nothing wokrs further.
I looked at: http://greyhead.net/chronoforms/chronoforms-adding-a-validated-checkbox
and http://tetlaw.id.au/view/javascript/really-easy-field-validation already, but don't get the problem.
Thanks for reply
Hi rexo,
The Auto Server-side Validation action is really just to validate that the user has completed the fields correctly. It's not intended to be used as a 'switcher'.
Do you just want to redirect the user to one of the two URLs? If so then I'd do it with a Custom Code action.
Bob
The Auto Server-side Validation action is really just to validate that the user has completed the fields correctly. It's not intended to be used as a 'switcher'.
Do you just want to redirect the user to one of the two URLs? If so then I'd do it with a Custom Code action.
<?php
$mainframe =& JFactory::getApplication();
$checked = $form->data['check_box_name'];
if ( $checked ) {
$mainframe->redirect('some_url');
} else {
$mainframe->redirect('some_other_url');
}
?>
Bob
This topic is locked and no more replies can be posted.