So you have JSON stored in an array, is that right?
If so: {var.jsonde:read_data_name.model_name.column_name}
I created a custom code to read data from a database, where I get the return as follows:
$ this-> data ['list_array'] = $list_array;
how can i use that json option?
in the Read Data in v7 use the Special fields advanced setting to auto decode a field directly in the loaded data list!
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
I'm trying to popularize a dropdown but I haven't seen a tutorial on how to do it on cf7.
in my table in the database, I have a column:
tab_days with the values ["1", "2" ...]
My drop-down menu looks like this:
<div class = "item" data-value = "[1,2]" data-text = "[1,1]"> ["1", "2"] </div>
how do I make it look like this:
I want to separate the items
data-value = 1 data text = 1
data-value = 2 data text = 2
...
how did you get it to list the options in that format ?
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
The Read Data in v7 (using the Special fields advanced setting to auto decode my field request) I still get the value returned as ["Building Issues"]
My data path is: request and the Processing Function is: Decode JSON
What am I missing? What I want displayed is Building Issues and not ["Buidling Issues"]