I am creating a blog category selection function.
When creating a new blog, register the items selected in the check box in the database.
At the time of editing, the data registered in the database is called, and the items that have already been checked are checked.
The problem is that the condition to register in the custom state is “when checked”, so if it is already checked, it will not be registered in the database unless it is checked again.
Is there a way to solve this?
I also want to register the ones that are already checked in the custom state.
When checked, the item is registered in the custom state.
The selected item is displayed next to [Add].
Items that are already selected will not be displayed. For example, on this screen, “ttt” and “ttttt” are already selected categories.