Jaxel
Well-known member
I am trying to use the field-adder function, in conjunction with a disabler. On first appears, it works... however, new fields added by the field-adder function come in disabled, even if it's supposed to be enabled.
HTML:
<xf:checkboxrow>
<xf:option name="custom_excerpt" value="1"
checked="{{ $earnings ? true : false }}"
data-xf-init="disabler"
data-container="#Earnings"
data-hide="false" />
</xf:checkboxrow>
<xf:formrow rowtype="input" id="Earnings">
<ul class="listPlain inputGroup-container">
<xf:foreach loop="$earnings" key="$counter" value="$earning">
<li class="inputGroup">
<xf:textbox name="earnings[{$counter}]" value="{$earning}" />
</li>
</xf:foreach>
<li class="inputGroup" data-xf-init="field-adder" data-increment-format="earnings[{counter}]">
<xf:textbox name="earnings[{{ count($earnings) }}]" />
</li>
</ul>
</xf:formrow>