Hi,
I have read these instructions http://www.chronoengine.com/faqs/72-ccv5/5208-connectivity-edit-with-chronoforms.html
but I also need to find the user that making the change. I tried this custom code on load event:
and then i used a hidden filed with name malattiaadmin[input_pic] and value malattiaadmin[input_pic] but the field is not updated.
where am I wrong?
Thanks
Christian
I have read these instructions http://www.chronoengine.com/faqs/72-ccv5/5208-connectivity-edit-with-chronoforms.html
but I also need to find the user that making the change. I tried this custom code on load event:
<?php
$user =& JFactory::getUser();
$name = '';
$email = '';
if ( $user->id > 0 ) {
$name = $user->name;
$groups = $user->get('groups');
};
foreach($groups as $group);
$form->data['malttiaadmin[input_pic]'] = $name;
?>
and then i used a hidden filed with name malattiaadmin[input_pic] and value malattiaadmin[input_pic] but the field is not updated.
where am I wrong?
Thanks
Christian