Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder:
Check Boxes

 

 


sagentic
User


Mar 21, 2008, 1:22 PM

Post #1 of 3 (207 views)
Shortcut
Check Boxes Can't Post

This would be a nice feature in a future version, but perhaps you may have a work around for me now.

When you create a field that is a list, you can choose between radio buttons and pull downs. It would be nice to be able to choose checkboxes and be able to put the options in the list as you can do with the other two.

An example of why you would want to be able to do this would be Realty Manager where you can have features of a home that you place check marks next to and those features show up on the front end website.

It is totally escaping me on how to make fields that use checkbox and get it to show up on the website right. All you get is 1's and 0's.


Dave
Staff / Moderator


Mar 21, 2008, 1:54 PM

Post #2 of 3 (205 views)
Shortcut
Re: [sagentic] Check Boxes [In reply to] Can't Post

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:


Code
<?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:


Code
<?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


sagentic
User


Mar 21, 2008, 1:56 PM

Post #3 of 3 (203 views)
Shortcut
Re: [Dave] Check Boxes [In reply to] Can't Post

Awesome - that will work for now!

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4