
Jason
Staff
/ Moderator

Aug 4, 2011, 10:13 AM
Post #25 of 25
(3863 views)
Shortcut
|
|
Re: [Toledoh] Membership: List CURRENT USER items only
[In reply to]
|
Can't Post
|
|
Hi Tim, Unfortunately, $CURRENT_USER doesn't use the :labels pseudo field on list fields. However, if you want to get an array of the selected list labels, you can try this:
$projectLables = getListLabels('accounts', 'project', $CURRENT_USER['project']); Taking this one step further, if you wanted an array where the index was the selected values, and the and the value was the label, you can combine the two arrays into 1 like this:
$projectNums = explode("\t", trim($CURRENT_USER['project'], "\t")); $projectLables = getListLabels('accounts', 'project', $CURRENT_USER['project']); $selectedProjects = array_combine($projectNums, $projectLabels); Hope this helps --------------------------------------------------- Jason Sauchuk - Programmer interactivetools.com Hire me! Save time by getting our experts to help with your project. http://www.interactivetools.com/consulting/
|