Issue Bug Closed

#77527Form Mail Template Radio/Checkbox without Values

Samuel Heinz 08/17/16, 11:31 updated 09/07/16, 21:54

Description

Example: Radio.html

<f:if condition="{model.showElement}">
<f:if condition="{model.additionalArguments.checked} == 'checked'">
<tr class="csc-form-{model.elementCounter} csc-form-element csc-form-element-{model.elementTypeLowerCase}">
  <td style="width: 200px;">
    <em>{model.additionalArguments.label}</em>
  </td>
</tr>
</f:if>
</f:if>

Should be:

<f:if condition="{model.showElement}">
<f:if condition="{model.additionalArguments.checked} == 'checked'">
<tr class="csc-form-{model.elementCounter} csc-form-element csc-form-element-{model.elementTypeLowerCase}">
  <td style="width: 200px;">
    <em>{model.additionalArguments.label}</em>
  </td>
  <td><f:if condition='{model.additionalArguments.value}'><f:then>{model.additionalArguments.value}</f:then><f:else>{model.additionalArguments.name}-{model.elementCounter}</f:else></f:if></td>
</tr>
</f:if>
</f:if>

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.