Thanks Teodor, I have managed to get things to work and, as always, surprised at how simple it is when I finally get my brain around it.
The Variable used to set the number of Input fields required…
<dmx-value id="var1" dmx-bind:value="repeat1pastelist.value ? repeat1pastelist.value.split('\n').count() : sc_ad_job_q.data.TEST12.count()"></dmx-value>
My textarea
code…
<label dmx-bind:for="method_item_[{{$index}}][part]" class="col-sm-1 col-form-label">Paste List</label>
<div class="col-sm-8">
<textarea id="repeat1pastelist" class="form-control"></textarea>
</div>
The revised code for the input fields…
<dmx-value id="var1" dmx-bind:value="repeat1pastelist.value ? repeat1pastelist.value.split('\n').count() : sc_ad_job_q.data.TEST12.count()"></dmx-value>
<div id="repeat1head" class="form-group row col-12">
<div class="col-sm-9">
<button id="btn1" class="btn btn-danger mr-5" dmx-on:click="var1.setValue((var1.value - 1))" dmx-bind:disabled="(var1.value < (sc_ad_job_q.data.TEST12 ? (sc_ad_job_q.data.TEST12.count() + 1) : 2))">-1</button>
<span></span>
<button id="btn1" class="btn btn-success" dmx-on:click="var1.setValue((var1.value + 1))">+1</button>
<button id="btn1" class="btn btn-success" dmx-on:click="var1.setValue((var1.value + 5))">+5</button>
<div>
<small id="bs4-form-group-help2" class="form-text text-muted">
<b>#nsf</b> will give <b>N/S/F</b> and <b>#f</b> will give <b>Front</b><br>
Works for Front, Rear, N/S, O/S, N/S/F, N/S/R, O/S/F, O/S/R <br>
Count {{sc_ad_job_q.data.TEST12 ? sc_ad_job_q.data.TEST12.count() : 0}}
</small>
</div>
</div>
When the page is opened with data from database
The a simple list manually pasted and hey presto, like magic…
As you can see the checkboxes to the right have retained the existing status but that will be simple enough to sort out in the morning.
This is a big time saver for the user. Really happy now, thanks