I've been trying to add a class by checking if a value of a certain field has been set to a specified option with the following template code. Only the value that i want to check, contains spaces in the string:
<% control dataFieldByName(FieldName) %>
<% if value = a value with spaces %> class="active"<% end_if %>
<% end_control %>
This generates the following error:
Parse error: syntax error, unexpected '}' in <pathname to template on server>
Is there a way to use space in comparisons in the template? I've tried "a value with a spaces", <% if value = AValueWithSpaces %>, escaping spaces, etc to no avail.
Any idea how this could be solved, if possible?