Node as my server model and MS SQL as the database backend. I need some help. Maybe I have been looking at it too long. I can’t get it to work. Here is what I have.
I have a Checkbox list that is populated from a table. I am inserting a one to many relationship into another table. That part works fine, as I can check as many checkbox items as needed and they are inserting into the database, with each checkbox value going into one record row. The problem is when I put those checkboxes in an edit form and try to dynamically check those based on the data from the one to many table.
This is what my checkbox list look like on the page:
And this is my code:
<div class="form-group mb-3" id="LocationGroup" is="dmx-checkbox-group" dmx-bind:value="scUserToLocationForBinding.data.queryUserToLocationListForBinding">
<div class="form-check" dmx-repeat:repeat1="scLocationList.data.queryLocations">
<input class="form-check-input" type="checkbox" value="" id="LocationID" name="locationID" dmx-bind:value="LocationId">
<label class="form-check-label" for="LocationID">{{LocationName}}</label>
</div>
</div>
</div>
This is in Wappler:
I have followed the How-to here Dynamically check Radio Buttons and Checkboxes
And other post but I just can’t get it to work. Nothing gets checked dynamically in my list.
Let me know if I need to post some more code or examples to help explain my issue.
Thanks,
Chris