Forums

Passing cf_uid in the URL on the first submit.

edebeer 28 Sep, 2011
How do you pass cf_uid on the first submit. I am using version 4. I can pass all form fields I created using redirect URL, but I can't pass cf_uid.
GreyHead 28 Sep, 2011
Hi edebeer,

You don't usually need to pass cf_uid as the current User ID is always directly available from the Joomla! User Object.
<?php
$user =& JFactory::getUser();
echo $user->id;
?>

Bob

Bob
edebeer 30 Sep, 2011
I want to pass cf_uid not cf_user_id. I thought cf_uid was the unique id not the user id.
GreyHead 12 Oct, 2011
Hi edebeer,

Sorry, my mistake.

cf_uid is created when the DB Save action runs; the value is then in $form->data['chronoform_data']['cf_uid']

Bob
This topic is locked and no more replies can be posted.