I've stored the result of a checkboxes-field in a database-field , type varchar. Result is an array which is stored as: ["value 1", "value 2"].
I would like to use this stored value as a default-value in a checkboxes-formfield. How do I do that?
I would like to use this stored value as a default-value in a checkboxes-formfield. How do I do that?
the easiest way is to name your field Model.table_file_name, and enable the "Populate fields" setting in the Read data, also the field should be set to JSON decode in the Read Data "Special fields" advanced setting!
Another way is using the "Dynamic selections" in the Checkboxes advanced settings!
Another way is using the "Dynamic selections" in the Checkboxes advanced settings!
I had to figure some things out. I guess you meant that I should name the field Model.table_field_name (not file), after that it worked. Thanks Max.
Regards, Hans
Regards, Hans
yes!
You need to login to be able to post a reply.