There was an interesting example given here (thanks @marcus-j-davies), showing how to create varying numbers of checkbox items when configuring a node. That thread is closed, therefore this new question.
That is to ask - if I find at run time that I need 4 checkbox items, how to generate 4 form-row divs; if I find I need 7 checkbox items, how to generate 7 form-row divs etc. ?
Thanks for any help,