Forums

load field database

agostino87 21 Nov, 2016
hello, I have a table with 5 fields (idagente, nameagente, email, phone, address). With a dropdown choose the idagente, how can I view the remaining information in other textbox ??
GreyHead 21 Nov, 2016
Hi agostino87,

You can do this using JavaScript. With an Ajax call you can get back a JSON array of all the matching data and set the values of the other inputs from that.

Bob
agostino87 21 Nov, 2016
Hi Grey,
I searched on google and this forum but found nothing.
Do you have any example or faq ??
GreyHead 22 Nov, 2016
Hi agostino87,

It would need custom JavaScript to do that. The jQuery docs are here and there are some tutorials here.

Best wishes

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