chronoforms 5 link chronoconectivity

ideagrup 16 May, 2014
I have a big problem. v5

When i create a new record from "chronoconnectivity", conexion opens "chronoforms" and you can create a new record.

But there are two problems

1. the name of the field in the form must have the model reference e.g. ( myModel[userJoomla] )
Then "chronoconnectivity" no saves user_id and other Joomla fields.

2.For resolve the problem, you say better to use php code e.g.
<?php $user =& JFactory::getUser(); $form->data['user_id'] => $user->id; ?>


But when "chronoforms" is linked to chronoconnecttivity this reference no runs.
I change "data" for "mymodel" and neither.

I need a php sentence to put user_id to chronoforms field linked to chronoconnectivity

Thanks
ideagrup 19 May, 2014
Answer
I have discovered like do it 😀
<?php
$user =& JFactory::getUser();
$form->data[ModelFCV5]['user_id'] = $user->get('id');
?>

OK, Thanks,
This topic is locked and no more replies can be posted.