Possible Bug in CMS Builder (V 2.06)
2 posts by 2 authors in: Forums > CMS Builder
Last Post: October 18, 2010 (RSS)
By guido_ch - October 18, 2010
When I use the Checkbox field as input I can define the Value for unchecked and checked. So i defined Y for checked and N for unchecked. But the Output is 1 for checked and 0 for unchecked, so I guess the possibility to set values for checked and unchecked has no effect and is there for useless?
Re: [guido_ch] Possible Bug in CMS Builder (V 2.06)
By Jason - October 18, 2010
Hi,
In the database, a checkbox is always stored as a 1 or 0.
The check and uncheck text values can be accessed by using the "text" pseudo field. Note, you need to be using the getRecords() function in order to do this:
For this example, let's assume the name of your field is "check_box"
This will output the text values that you set in CMS Builder.
Hope this helps.
In the database, a checkbox is always stored as a 1 or 0.
The check and uncheck text values can be accessed by using the "text" pseudo field. Note, you need to be using the getRecords() function in order to do this:
For this example, let's assume the name of your field is "check_box"
<?php echo $record['check_box:text']; ?>
This will output the text values that you set in CMS Builder.
Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/