jsonform icon indicating copy to clipboard operation
jsonform copied to clipboard

Create list of checkboxes from array of strings

Open sdetweil opened this issue 4 months ago • 2 comments

I have this array of strings User can add/delete NOT ENUM

Later I have a field which should contain a list of the selected strings from that list

So add a checkbox in front of the string User checks On submit I query the checkbox and get the text for those checked

I can't seem to make this work I can't create an inline title w the value of the field

In the form I tried adding two fields off the same key Checkbox, read-only data This gives the parts, so I will have to use htmlClass and style to get inline

Any other suggestions?

Is this the same as the legend checkbox issue #369

sdetweil avatar Aug 14 '25 16:08 sdetweil

I will use onChange handlers as needed to handle adds/deletes from the list being reflected in the selection list field (click the hidden add/delete buttons)

add/delete/change name works as expected...

sdetweil avatar Aug 14 '25 17:08 sdetweil

SO, I ended up doing this to get the items lined up where li is the lie item for each row with whatever additional selector info as needed

li div {
	display: flex;
	flex-direction: row;
}

looks like this now

Image

sdetweil avatar Aug 20 '25 20:08 sdetweil