Answer the question
In order to leave comments, you need to log in
How to write an if condition for a radio button?
Greetings!
The field in the form is:
<input type="text" id="color_dunkle" name="color_dunkle" class="text" value="{$editable_page.editable_page_theme_config.color_dunkle|default=''}">
{$editable_page.editable_page_theme_config.color_dunkle|default=''}
works without errors. <label for="article_show1" class='{if condition="$editable_page.editable_page_theme_config.color_dunkle eq 1"}selected{/if}'>Да</label>
{if condition="$editable_page.editable_page_theme_config.color_dunkle|default='' eq 1"}selected{/if}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question