This is an extension of a question I posted here earlier, but another layer of complexity.
I'm trying to have a checkbox field within a table field be checked/unchecked from a front end form.
I've tried a number of scenarios using the example found here in the docs, but no dice.
Here is my current code:
<table>
{% for row in currentUser.providerPayment %}
<tr>
<td>Sliding scale?</td>
{% for slidingScale in currentUser.providerPayment %}
{% set checked = false %}
{% if slidingScale.selected %}
{% set checked = true %}
{% endif %}
{% if not checked %}
<input type="hidden" name="fields[providerPayment][0][col2]" value="">
{% endif %}
<td><input type="checkbox" value="{{ slidingScale.value }}" name="fields[providerPayment][0][col2]" {% if checked %} checked="checked"{% endif %}></td>
{% endfor %}
{% endfor %}
</table>
And here is the error it's producing:
Update Here are my table field settings: