Skip to content

Commit

Permalink
🐛 Display checkbox values properly
Browse files Browse the repository at this point in the history
  • Loading branch information
shea-maykinmedia committed Jun 7, 2021
1 parent 17c1850 commit 4c6a65d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Summary.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ Templates.addTemplate('overview', {
{% } %}
</label>
`
},
checkbox: {
form: `
<label class="openforms-label {{ctx.label.className}}" style="display: table-cell" for="{{ctx.instance.id}}-{{ctx.component.key}}">
{{ ctx.t(ctx.component.label) }}
{% if (ctx.component.tooltip) { %}
<i ref="tooltip" class="{{ctx.iconClass('question-sign')}}"></i>
{% } %}
</label>
<div ref="value">{{ ctx.checked }}</div>
`
}
});

Expand Down Expand Up @@ -86,6 +97,7 @@ const Summary = ({ submission, onConfirm, onShowStep }) => {
form={step.configuration}
submission={step.data}
options={{renderMode: 'html', template: 'overview'}}
// options={{renderMode: 'html'}}
/>
</Fragment>
))}
Expand Down

0 comments on commit 4c6a65d

Please sign in to comment.