Hi I am trying to load the data only if the joomla user id = the cf_user_id
I have tried:
Just not sure where to put the if or where
Also for some reason when clicking edit the form is not being populated. It has the correct cf_uid in the url (matches the entry in the database) however all the form fields are empty?
debug:
Many Thanks in advance
Kevin
I have tried:
<?php $user = JFactory::getUser(); ?>
<?php foreach($form->data['WeeklyAssessment'] as $detail): ?>
<div class="showweekly">
Name:<?php echo $detail['input_name']; ?>
<a href="index.php?option=com_chronoforms&chronoform=weekly_assessment&token=<?php echo $detail['cf_uid']; ?>">Edit</a>
</div>
<?php endforeach; ?>
Just not sure where to put the if or where
Also for some reason when clicking edit the form is not being populated. It has the correct cf_uid in the url (matches the entry in the database) however all the form fields are empty?
debug:
[19] => Array
(
[cf_id] => 20
[cf_uid] => bacbf73e6ba8b792ecc126ecdexxxxxx
[cf_created] => 2013-08-02 17:56:04
[cf_modified] => 0000-00-00 00:00:00
[cf_created_by] => 911
[cf_modified_by] => 0
[cf_ipaddress] => 222.222.222.222
[cf_user_id] => 911
[input_name] => my name
[input_email] => myemail@email.com
[input_week_number] => 3
[input_fitness] => tdhth
[input_demos] => iugliuuig
[input_personal_skiing] => hlkijh;io
[input_topics_covered] => iuh;oihg
[input_strengths] => hvkjhv
[input_weaknesses] => thluh
[input_progression_towards_goals] => kjnlkjhnl
)
)
)
Validation Errors:
Array
(
)
Debug Data
db_multi_record_loader
SELECT `WeeklyAssessment`.* FROM `xxxxxx_chronoforms_data_weekly_assessment` AS `WeeklyAssessment`
Many Thanks in advance
Kevin