Good afternoon
I need to solve a problem.
I have a drop-down menu of multiple choice, which I load the data from a database.
This data is being saved as follows:
When updating the data I use this: {data.jsonen: HoraAtend.dias},
in the bank table it is registered like this: ["1", "2"] for example.
I need that, when viewing the update event, the data is loaded in this drop-down menu, as well
how it works in any other. But I don't know how to do it when the Multiple Choice option is
enabled.
I hope you understand.
In short, items are not activated
Table data
tab_dias_semana
[1] => Sunday
[2] => Monday
[3] => Tuesday
[4] => Wednesday
[5] => Thursday
[6] => Friday
[7] => Saturday
tab_agenda
...
[days] => ["1", "2"]
...
In image 01 shows how it is currently
In image 02 shows how I need it to be
I need to solve a problem.
I have a drop-down menu of multiple choice, which I load the data from a database.
This data is being saved as follows:
When updating the data I use this: {data.jsonen: HoraAtend.dias},
in the bank table it is registered like this: ["1", "2"] for example.
I need that, when viewing the update event, the data is loaded in this drop-down menu, as well
how it works in any other. But I don't know how to do it when the Multiple Choice option is
enabled.
I hope you understand.
In short, items are not activated
Table data
tab_dias_semana
[1] => Sunday
[2] => Monday
[3] => Tuesday
[4] => Wednesday
[5] => Thursday
[6] => Friday
[7] => Saturday
tab_agenda
...
[days] => ["1", "2"]
...
In image 01 shows how it is currently
In image 02 shows how I need it to be