Hi, Bob and Max
I'have a serious problem.
I have a Form with a dropdown (dbread)
the database have 4 fields
id, name, direction and phone
onLoad
dbread (database) OK
In the Form
dropdown (select all values perfectly) OK
When I select a record into dropdown i would like to put direction and phone into two fields
i cant put the values into fields
HELPPPP
Thanks.
THOMAS
I'have a serious problem.
I have a Form with a dropdown (dbread)
the database have 4 fields
id, name, direction and phone
onLoad
dbread (database) OK
In the Form
dropdown (select all values perfectly) OK
When I select a record into dropdown i would like to put direction and phone into two fields
i cant put the values into fields
HELPPPP
Thanks.
THOMAS
Hi Thomas,
Your example is a bit more complicated but the method described in this FAQ should work here.
Bob
Your example is a bit more complicated but the method described in this FAQ should work here.
Bob
Hi Friends.
I think that i am very near to find a solution.
Look this:
http://www.programasi.org/es/?option=com_chronoforms5&chronoform=prueba
debuger shows dbread with 3 records: [relacion] -> [0], [1] and [2]
when you change dropdown call function js that put value in other field.
this value is exactly that i need to put array value into the field.
But if i put php tags is not running.; Look this function is used
How can I do it???
Thomas
I think that i am very near to find a solution.
Look this:
http://www.programasi.org/es/?option=com_chronoforms5&chronoform=prueba
debuger shows dbread with 3 records: [relacion] -> [0], [1] and [2]
when you change dropdown call function js that put value in other field.
this value is exactly that i need to put array value into the field.
But if i put php tags is not running.; Look this function is used
function cambiavalor(){
var phpvalue = "echo $form->data['relacion'][" + document.getElementById('co_tipo_centro').selectedIndex + "]['re_Infantil']";
document.getElementById('co_infantil').value = phpvalue;
}
How can I do it???
Thomas
This topic is locked and no more replies can be posted.