XF 2.2 field-adder trigger button?

D.C Style

Well-known member
I was wondering if there's any solution for this. For example, I have this
Code:
<li data-xf-init="field-adder">
   <xf:textbox name="example[]" value="" />
</li>
Everyone knows it will automatically be added each time we type something in the textbox. But I want to add something like this
Code:
<xf:button data-xf-click="field-adder">{{ phrase('add') }}</xf:button>
Does anyone have an idea?
 
Back
Top Bottom