Hello,
I have a CF5 form (Form1) which passes parameters to a CC5 connection, to allow filtering of the selection. This works well.
I am also using a link field in the Connection to call another CF5 form (Form2) for record editing. Again, this works well.
I would like to pass a parameter from the first CF5 form to the second, which is not used by the CC5 connection.
For example:
1. Form1 passes ...&dept=finance&requestor=boss to the connection.
2. The parameter "dept" is used in the Conditions array of the model to select which records to display. I use JRequest to get the two parameters and store them as $dept and $requestor.
3. On selection of the record for editing, I want to add the parameter "requestor=boss" to the url calling the editing form, so that the editing form can know who requested this edit.
I tried adding &requestor={$requestor} to the link url but there was no substitution. I tried several variations on the theme with no success. In all cases I can use curly brackets to substitute field values from the selected row, but not to pass anything other than a fixed value parameter.
Can anyone suggest how I can access the incoming parameter to build a link url?
Cheers
Tim
I have a CF5 form (Form1) which passes parameters to a CC5 connection, to allow filtering of the selection. This works well.
I am also using a link field in the Connection to call another CF5 form (Form2) for record editing. Again, this works well.
I would like to pass a parameter from the first CF5 form to the second, which is not used by the CC5 connection.
For example:
1. Form1 passes ...&dept=finance&requestor=boss to the connection.
2. The parameter "dept" is used in the Conditions array of the model to select which records to display. I use JRequest to get the two parameters and store them as $dept and $requestor.
3. On selection of the record for editing, I want to add the parameter "requestor=boss" to the url calling the editing form, so that the editing form can know who requested this edit.
I tried adding &requestor={$requestor} to the link url but there was no substitution. I tried several variations on the theme with no success. In all cases I can use curly brackets to substitute field values from the selected row, but not to pass anything other than a fixed value parameter.
Can anyone suggest how I can access the incoming parameter to build a link url?
Cheers
Tim