Hi there,
Great product. I need to add a link for a popup window after the submit button with the idea to print the submitted data with the cf_id as the job number for a cover sheet for the project. At the moment the settings for the form are:
General
Email the results? Yes
Load Chrono CSS/JS files? Yes
DB Connection
Enable Data STorage? Yes
Saving Data/Emails order? Before email
All data is getting saved into data base and can be searched and edited with a ChronoConnectivity form.
I've added a confirmation form in the On Submit code - after sending email that works well and displays the cf_id field:
<p>{surveyor}, the Job Number for:</p>
<p style="padding-left: 60px;"><strong>{first_name} {surname}</strong> of</p>
<p style="padding-left: 60px;"><strong>{address}</strong></p>
<p style="padding-left: 60px;"><strong>{town}</strong></p>
<p>is:</p>
<h1 style="padding-left: 60px;"><strong><?php echo $MyForm->tablerow["swsg_job_data"]->cf_id;
?></strong></h1>
When I use a static Edit Record link from ChronoConnectivity it works OK:
<a href='http://www.swsg.com.au/index.php?option=com_chronoconnectivity&connectionname=swsg&task=editrecord&cids=10148&Itemid=4'>View Details_CF_ID</a>
but if I add <?php echo $MyForm->tablerow["swsg_job_data"]->cf_id;?> instead of 10148 to get the currentcf_id, I get the following error:
"You are not authorized to view this page, Row Edit Error ".
I can copy the link location and paste into a new window and it works fine.
I'm stumped. Are you able to shed any light?
Cheers
Luke
Great product. I need to add a link for a popup window after the submit button with the idea to print the submitted data with the cf_id as the job number for a cover sheet for the project. At the moment the settings for the form are:
General
Email the results? Yes
Load Chrono CSS/JS files? Yes
DB Connection
Enable Data STorage? Yes
Saving Data/Emails order? Before email
All data is getting saved into data base and can be searched and edited with a ChronoConnectivity form.
I've added a confirmation form in the On Submit code - after sending email that works well and displays the cf_id field:
<p>{surveyor}, the Job Number for:</p>
<p style="padding-left: 60px;"><strong>{first_name} {surname}</strong> of</p>
<p style="padding-left: 60px;"><strong>{address}</strong></p>
<p style="padding-left: 60px;"><strong>{town}</strong></p>
<p>is:</p>
<h1 style="padding-left: 60px;"><strong><?php echo $MyForm->tablerow["swsg_job_data"]->cf_id;
?></strong></h1>
When I use a static Edit Record link from ChronoConnectivity it works OK:
<a href='http://www.swsg.com.au/index.php?option=com_chronoconnectivity&connectionname=swsg&task=editrecord&cids=10148&Itemid=4'>View Details_CF_ID</a>
but if I add <?php echo $MyForm->tablerow["swsg_job_data"]->cf_id;?> instead of 10148 to get the currentcf_id, I get the following error:
"You are not authorized to view this page, Row Edit Error ".
I can copy the link location and paste into a new window and it works fine.
I'm stumped. Are you able to shed any light?
Cheers
Luke