I have many CF forms (edit, view, etc..)called from several CC's, my issue is to go back to the righ CC wich has called it
I discovered "ccname" variable can be used with a "switch-action" to manage diferents connection-action go-back routes
But if conection-action will support "ccname" as variable all will be more straightforward, I think this should be a very good new feature to request you
I discovered "ccname" variable can be used with a "switch-action" to manage diferents connection-action go-back routes
But if conection-action will support "ccname" as variable all will be more straightforward, I think this should be a very good new feature to request you
Hi Teldrive,
Sorry but I can't understand this, please give me an example.
Regards,
Max
Sorry but I can't understand this, please give me an example.
Regards,
Max
Hi Max, for sure, we have for example 2 CC list
cc1_list that has a button-action that links to an action "format" that calls to a CF "formatview_form"
cc2_list that has a button-action that links to an action "format" that calls to a CF "formatview_form"
for both CC list we use same CF form but we need to use a switch action like this to redirect to the right cc list
[attachment=0]Captura.JPG[/attachment]
the big problem comes when threre are three or four CC list that call to same CF form, using "ccname" as variable field "{ccname}" on connection action will simplify this, i tested it but doesn't work
cc1_list that has a button-action that links to an action "format" that calls to a CF "formatview_form"
$this->view->Toolbar->addButton("toolbar-button-upload","/es/component/chronoconnectivity5/?cont=lists&ccname=cc1_list&act=format","FORMAT", "/libraries/cegcore/assets/images/toolbar/format.png","submit_selectors");
cc2_list that has a button-action that links to an action "format" that calls to a CF "formatview_form"
$this->view->Toolbar->addButton("toolbar-button-upload","/es/component/chronoconnectivity5/?cont=lists&ccname=cc2_list&act=format","FORMAT", "/libraries/cegcore/assets/images/toolbar/format.png","submit_selectors");
for both CC list we use same CF form but we need to use a switch action like this to redirect to the right cc list
<?php
if($form->data['ccname'] =="cc1_list"){
return 'success';
}else{
return 'fail';
}
?>
[attachment=0]Captura.JPG[/attachment]
the big problem comes when threre are three or four CC list that call to same CF form, using "ccname" as variable field "{ccname}" on connection action will simplify this, i tested it but doesn't work
Hi Teldrive,
Sorry for the delay, I understand this better now!
But this is not a major issue, 3 or 5 connection actions inside an Event switcher should be ok.
There is a way to do it using PHP code, I will try to simplify this process in the next update.
Regards,
Max
Sorry for the delay, I understand this better now!
But this is not a major issue, 3 or 5 connection actions inside an Event switcher should be ok.
There is a way to do it using PHP code, I will try to simplify this process in the next update.
Regards,
Max
please consider also to include some field for options like &limit=100(for full listing) or &srch=(for clearing)
What I'm thinking about is to include a setting to disable the auto redirect and the user can then use a redirect action for that, since some users have already faced this issue and this is the easiest solution.
This topic is locked and no more replies can be posted.