Hello,
I am assessing Chronoforms for my site, so far it is looking fantastic and very powerful. I have a problem passing fields from one form to another. I have read many tips, how-to's and forum posts, but I'm missing something important, because it just isn't working for me.
Scenario
Enter 3 fields. Pass them to form 2, so they can be used to check for a database record to populate fields on forms 2 (including cf_id so the record can be updated)
Setup
Form1 contains 3 fields:
order (string)
name (string)
date (string)
Form2 containd many fields, and includes the fields from Form1, with the exact same names.
Method(s)
1. Just call Form2 from Form1 using Show Form Action. This should populate the fields through the POST data? It hasn't worked.
2. Add Multi Page Actions to all events. I'm not sure this should work, this is only for multiple pages in one form?
3. Add Session to Data and Data to Session Actions in the On Submit and On Load events respectively. This did not work so I added the same session key to each form. This also did not work.
4. Used custom code, but this showed blank data. For example:
5. Set the Form to GET instead of the default POST. This proved that the parameters are being passed. However, it removes the parameters that load the correct form, so it takes me back to the home page. Maybe this is because of SEF URLs or other incompatible site setup.
6. I have removed all authentication to try and make it work.
As you can see, I think I have tried all the tips found on this site. Can anyone tell me what I have missed?
I am assessing Chronoforms for my site, so far it is looking fantastic and very powerful. I have a problem passing fields from one form to another. I have read many tips, how-to's and forum posts, but I'm missing something important, because it just isn't working for me.
Scenario
Enter 3 fields. Pass them to form 2, so they can be used to check for a database record to populate fields on forms 2 (including cf_id so the record can be updated)
Setup
Form1 contains 3 fields:
order (string)
name (string)
date (string)
Form2 containd many fields, and includes the fields from Form1, with the exact same names.
Method(s)
1. Just call Form2 from Form1 using Show Form Action. This should populate the fields through the POST data? It hasn't worked.
2. Add Multi Page Actions to all events. I'm not sure this should work, this is only for multiple pages in one form?
3. Add Session to Data and Data to Session Actions in the On Submit and On Load events respectively. This did not work so I added the same session key to each form. This also did not work.
4. Used custom code, but this showed blank data. For example:
$form -> data['order'] = JRequest::getString('order', '', 'post');
echo ">> " . $form -> data['order'];
5. Set the Form to GET instead of the default POST. This proved that the parameters are being passed. However, it removes the parameters that load the correct form, so it takes me back to the home page. Maybe this is because of SEF URLs or other incompatible site setup.
6. I have removed all authentication to try and make it work.
As you can see, I think I have tried all the tips found on this site. Can anyone tell me what I have missed?