Anything special in "Selected values" for a dropdown multi select?

rslyra 11 May, 2020
HI.
I have a dropdown multi select and it's works fine, except for show the content from the database.

1 - first time the form show the options and aceept a answer.
2 - the answer is saved in database = ["785","394","259","51"]
3 - open form again, but the field is empty.

I have checked every fild in the form many times.
Name: pes_base_id_lst
Id: pes_base_lista
Selected values: {var:read_data3.Data3.pes_base_id_lst}

and nothing.

Does "Selected values" need any extra information??


Thanks
Max_admin 11 May, 2020
when you place {var:read_data3.Data3.pes_base_id_lst} in HTML element, what does it show ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rslyra 11 May, 2020
I`m not sure of your question.

What is in the data base is ["785","394","259","51"]
The field in the html form is empty. Blank.
Max_admin 11 May, 2020
I mean are you sure that the shortcode you have is correct ? test it in HTML element!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Max_admin 11 May, 2020
What is displayed in the debug for the read_data3 action ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rslyra 11 May, 2020
Hi.

I create a text field with the same source. It show ["785","394","259","51"]

This is the result of the debug.

The value is there. Just don't show.
[Data3] => Array
                        (
                            [pes_id] => 1
                            [pes_nome] => Teste
                            [pes_cpf] => 123123
                            [pes_sit] => 0
                            [pes_telefone] => 987987
                            [pes_cargo] => analista
                            [pes_email] => asdasd
                            [pes_org_id_lot] => 113
                            [pes_org_id_edt] => 159
                            [pes_org_seq] => 16000
                            [pes_org_seq_fim] => 23999
                            [pes_base_edt] => NAO
                            [pes_censo] => SIM
                            [pes_ativo] => 1
                            [pes_base_id_lst] => ["785","394","259","51"]  <this 
Max_admin 12 May, 2020
so for the dropdown you need to decode it:
{var.jsonde:read_data3.Data3.pes_base_id_lst}
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
healyhatman 12 May, 2020
You are opening the form again expecting the answer you saved in the database to be selected. But have you actually READ it from the database?
rslyra 12 May, 2020
to Admin
I tried this jsonde, with no effect.

to healyhatman
Yes, you can see it on the debug data, above.

TO admin again. How the data is expected to come?
An array?
array("785","394","259","51") in the place of ["785","394","259","51"] ??
I though that the way it is stored is be the way it should be recovered. Is not?
rslyra 14 May, 2020
Answer
to Admin.

You are the guy!!! Jsonde solved the problem!!

I don't know What I did ate the first time, but I tried again and it is working.

Thanks a lot. !


By the way, one small question. I start wuth CF in version 4, ten (??) years ago. Now, for a new project I decided to jump to version 6. But now you are developing a CF7, right?

Will be a way to migrate from 6 to 7?
Max_admin 19 May, 2020
Yes, there should be a converter from v6 to v7 but I'm not sure when it will be available and if it will upgrade the whole form contents, you better wait a little bit then start using v7 directly!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rslyra 19 May, 2020
You restored my faith on chronoforms!!

I'm just starting a new project, has just finished forms step. It's not the time for new adventures.

But, in future, I don't what to be outdated.

Thanks.
This topic is locked and no more replies can be posted.