Ok... in my php file I have:
$xcrud->relation('user_who_add_the_data', 'user_table', 'user_id', 'user_name', '', '', false);
This will provide me a dropdown list of users name from my users table.
I want to add as default value in the user_who_add_the_data
field the current logged in user for which I stored the name in the $logged_user_name
variable
I tried to use:
$xcrud->pass_default('user_who_add_the_data', $logged_user_name);
but this doesn't works.