Hi,
I have a value that I am reading from a database as a 1 or 0 that I want to display in a list view as YES or NO and when editing as a checkbox...
I succesfully set the template to show YES or NO by using this code:
<div>#if(sup==1){#YES#}else{#NO#}#</div>
but I can not get the edit_template to show checked when sup == 1... it always displays unchecked.
Can you help with the proper syntax to read this value for a checkbox in an edit_template?
Thank you,
Andrew
I have a value that I am reading from a database as a 1 or 0 that I want to display in a list view as YES or NO and when editing as a checkbox...
I succesfully set the template to show YES or NO by using this code:
<div>#if(sup==1){#YES#}else{#NO#}#</div>
but I can not get the edit_template to show checked when sup == 1... it always displays unchecked.
Can you help with the proper syntax to read this value for a checkbox in an edit_template?
Thank you,
Andrew