Fill text fields with values ​​stored in the database

arancha 24 Aug, 2025

Hi, I have a form with several fields that need to be automatically filled with values ​​collected from other forms already saved in the database. In the form, I have a Read Data action and a field that displays (with a PHP command at the top) a selection of values ​​from a specific field. What I want is for if I select a value, the following fields to be automatically filled with the values ​​from that already saved form. I can't get it to work.Thanks for the help.

Max_admin 26 Aug, 2025

Hi arancha

When you change the selection you may run a trigger which can do an AJAX request and call a JavaScript function to set the fields values OR you may reload a container which has the fields you want to set the values for

setting the values with a function and JavaScript is better since it will keep the same HTML but you will need to write the function's code

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
You need to login to be able to post a reply.