Check Boxes

3 posts by 2 authors in: Forums > CMS Builder
Last Post: March 21, 2008   (RSS)

Re: [sagentic] Check Boxes

By Dave - March 21, 2008

Multi-value fields such as checkboxes are definitely on the list of planned features.

The workaround for now would be to create multiple checkboxes, one for each feature. You can display them like this:

If you want to show some text if a checkbox (named 'feature') is checked, you could use this:

<?php if ($record['feature']): ?>Feature Name<?php endif ?>

Or if you wanted to display two different values such as "Yes" or "No" you could use some code like this:

<?php echo $record['feature'] ? "Yes" : "No"; ?>

Hope that helps! Let me know if you have any other questions or feature requests! :)
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Check Boxes

By Kenny - March 21, 2008

Awesome - that will work for now!