Hi,
I can't find this question in the forum.
I've made a form 'test' with the following fields which stories the submissions in a tabel jos_test. In this table the following columns exist (and a couple more):
- cf_id
- uid
- name
- email
- country
With Connectivity i created two connections. The first only shows a list of the names which are links. When a link (name) is clicked the second connection comes in and shows the cf_id, name, email and country on a page. There is also a link on this page to a second form 'newform'. When someone clicks this link for openening then i want to 'passthrough' the name into a computed field. The link contains a variable (&chronoformname=newform&name={name}) but how can i achieve it that it gives the value into the field. I hope it makes sense.
Thanks in advance,
Jaap
I can't find this question in the forum.
I've made a form 'test' with the following fields which stories the submissions in a tabel jos_test. In this table the following columns exist (and a couple more):
- cf_id
- uid
- name
- country
With Connectivity i created two connections. The first only shows a list of the names which are links. When a link (name) is clicked the second connection comes in and shows the cf_id, name, email and country on a page. There is also a link on this page to a second form 'newform'. When someone clicks this link for openening then i want to 'passthrough' the name into a computed field. The link contains a variable (&chronoformname=newform&name={name}) but how can i achieve it that it gives the value into the field. I hope it makes sense.
Thanks in advance,
Jaap
Hi Jaap,
In your form html you should be abel to get the value with:
Bob
PS 'name' is not a good fieldname to user - it has too many other uses and can cause problems, try 'uname' or something else if things don't work as you expect.
In your form html you should be abel to get the value with:
<?php
$name = JRequest::getString('name', '', 'get');
?>
Bob
PS 'name' is not a good fieldname to user - it has too many other uses and can cause problems, try 'uname' or something else if things don't work as you expect.
Hi Greyhead,
Due to a holiday i haven't be able to test it earlier. Thanks for the tip. I've tested it but i can't get it to work, i've also tried another field because of your PS comment/tip. The result stays empty. When i click the button for the newform the url is (example of one of the entries):
index.php?option=com_chronocontact&chronoformname=newform&swimmer=Jaap
On the form i've placed the code(form code tab,form html):
<strong> him and<?php
$swimmer = JRequest::getString('swimmer', ' ', 'get');?></strong>
Because i'm still struggling with it i removed everything else so that i should only see the text below and de Joomla Professional Work link. I thought i would see 'Him and Jaap'. I can't see what i'm doing wrong because it's all rather new to me.
Regards,
Jaap
Due to a holiday i haven't be able to test it earlier. Thanks for the tip. I've tested it but i can't get it to work, i've also tried another field because of your PS comment/tip. The result stays empty. When i click the button for the newform the url is (example of one of the entries):
index.php?option=com_chronocontact&chronoformname=newform&swimmer=Jaap
On the form i've placed the code(form code tab,form html):
<strong> him and<?php
$swimmer = JRequest::getString('swimmer', ' ', 'get');?></strong>
Because i'm still struggling with it i removed everything else so that i should only see the text below and de Joomla Professional Work link. I thought i would see 'Him and Jaap'. I can't see what i'm doing wrong because it's all rather new to me.
Regards,
Jaap
Hi Jaap,
You need to add an echo to have it show up in the output:
Bob
You need to add an echo to have it show up in the output:
<strong> him and<?php
echo JRequest::getString('swimmer', ' ', 'get'); ?></strong>
Bob
This topic is locked and no more replies can be posted.