Multi-Value Checkboxes

2 posts by 2 authors in: Forums > CMS Builder
Last Post: June 18, 2010   (RSS)

Re: [sagentic] Multi-Value Checkboxes

By Chris - June 18, 2010

Hi sagentic,

I would do this using getListValues():

<?php
$values = getListValues('tableName', 'color', $record['color']);
echo join(', ', $values);
?>


If you ever end up needing to use labels instead of values, you can swap in getListLabels().

I hope this helps! Please let me know if you have any questions.
All the best,
Chris