Buy Now
Sign in

Filter by user

francescocartei , August 31 2016
F
francescocartei 32
August 31 2016 #361525
Hi,
in ChronoConnectivity V5 I want to filter the records by user. I want that when Mr. Red sign in, he only see the records that he has created and does not see the records of Mr. Green.
GreyHead 63.4
August 31 2016 #361527
Hi armandocurcio,

You can add that in the conditions box something like this
<?php
$juser = \JFactory::getUser();
return array ('user_id' => $juser->id);
?>
but replace user_id with the user ID column name form your table.

Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much