Hi, I have a checkbox field going into the database:
new CheckboxSetField("CropUse", "Crop Use",array("silage" => "Silage","grain" => "Grain","dual" => "Dual Purpose")),
so, the value in the field will be "grain" or "grain,dual" or "grain,silage,dual" etc...
How do I test for the inclusion of a value in this field in the template? Ie I want to do something like:
<% if CropUse = grain %> <h4>Grain CRM: $GrainCRM</h4> <% end_if %> <% if CropUse = silage %> <h4>Silage CRM: $SilageCRM</h4> <% end_if %> <% if CropUse = dual %> <h4>Grain CRM: $GrainCRM / Silage CRM: $SilageCRM</h4> <% end_if %>
something like that....what I want is to be able to test whether one of the 3 values exist in the db field.
thanks in advance!