0
edits
Changes
→How to display different content based on a value using SmartLogic
'''Note:''' SmartLogic does not support nested logic statements.
You can use SSLogic to display data stored in a combo box in SmartSimple as check boxes in a Web Page View. For example, if you have a pull-down box named 'clientgener' that you would like to be displayed as 2 check boxes on the Web Page View you would use the following:
<pre>
<!--@sslogic('@clientgender@'='Male')-->
<input type="checkbox" value="checkbox" checked> Male
<input type="checkbox" value="checkbox"> Female
<!--@else-->
<input type="checkbox" value="checkbox"> Male
<input type="checkbox" value="checkbox" checked> Female
<!--@end-->
</pre>
==How to display check boxes in the Web Page View==