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
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
when you place {var:read_data3.Data3.pes_base_id_lst} in HTML element, what does it show ?
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.
What is in the data base is ["785","394","259","51"]
The field in the html form is empty. Blank.
I mean are you sure that the shortcode you have is correct ? test it in HTML element!
What is displayed in the debug for the read_data3 action ?
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.
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
so for the dropdown you need to decode it:
{var.jsonde:read_data3.Data3.pes_base_id_lst}
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?
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?
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?
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?
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?
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!
This topic is locked and no more replies can be posted.