Hello,
I’m using a table which registers data as json. These data are simply lists, like:
[option1, option2, option4]
I could also save them as:
{option1: True, option2: True, option3: False, option4: True}The two versions are as good to me, so I can use whichever is the easiest to use in my case.
But, I absolutely need this to be displayed as checkboxes on my edit form, so the users can easily check or uncheck the options they want. So the form needs to aggregate the choices in a json object.
As far as I know, there is no way to do this with the Smart Editor as it is. I would have liked doing it with only a script in the widget, but I don’t think it’s possible.
So, I had a look on editing the widget, to have a custom Smart Editor, maybe with an hardcoded part of the form. But it’s 13k lines of code, so I’m completely lost. Also, it needs to be quite easily modified as the list can be changed. Do you have any idea, any resource to help me, please? Or if you think of another way to allow the user to easily do this? Or is there no other way than altering my table to store my data as booleans?
Thank you