Lining up Checkboxes on web and using @For with @DBColumn

I have figured out a way to have checkboxes come out neatly in columns on the
web using the new @For formula and passthru HTML on a computed text field.

Computed Text Here
====================== The computed text is: cbx := "<input type='checkbox' name='Plant' value='"; newrow := "{<tr>"; endrow := "</td></tr>]"; <p>xlist := <span class="mention">@Explode</span>(<span class="mention">@Implode</span>(<span class="mention">@DbColumn</span>(“”;“”;“vwLkupPlant”;1);“~”);“~”);<br> xnum := <span class="mention">@Elements</span>(xlist);</p> <p>REM {Change this value here and in the passthru html above for cols= };<br> numcols := 3;</p> <p>REM {Modulo of 0 = last column, Any other modulo = the column position};</p> <p><span class="mention">@For</span>(x := 1; x<=xnum; x := x+1; <span class="mention">@If</span>(<span class="mention">@Modulo</span>(x;numcols) = 0;newlist := newlist +<br> “[” + cbx + xlist<span class="chcklst-box checked fa fa-square-check-o fa-fw"></span> + “'>” + xlist + endrow;@If(@Modulo(x;numcols) =
1;newlist := newlist + newrow + cbx + xlist + “'>”+ xlist + "
  ]";newlist := newlist + “[” + cbx + xlist + “'>” + xlist

  • "   ]")));

newlist

========================
The above works great if you are only dealing with one form. However, I need
to go to a second form that includes the Plant field. Using the method above,
my Plant values disappear. So in place of the computed text field, I created a
Notes Checkbox field and selected Use Formula for Choices and select 1 column.

This solves the problem of losing the selected values on the subsequent form,
however, now I am getting an additional checkbox entry at the front of the list
with no value. This is from the default tag that domino is generating for the
checkbox field.

If I select the first option that domino is generating, then the Plant field
contains the HTML code, not the values of the fields. I think somehow the
checkbox fields are getting nested.

My question is, does anyone know a way to stop domino from generating that tag
or to override it?

I have tried using the computed text method and putting a notes field of the
same name Plant on the form and hidding that, but the values that get checked
still do not move to the subsequent form.

Thanks