Forums

Dropdowns not populated on page load

jformicola 21 Sep, 2023
Updating my main form (version 6) to version 8 as the loop events stopped working after the upgrade to joomla 4. Got the majority done, but I'm running into a issue. When the form loads, the dropdowns aren't populated until I push f5 and refresh the page.
Max_admin 21 Sep, 2023
how do you add options to the dropdowns ?
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
jformicola 21 Sep, 2023
Hi Max!

Read datas / All matching records / two fields

Drop down calls the read data variables in "Data source" and then in "option value code " I have {row:EMPId} and in "option value text" I have
{row:FullName} example.
Max_admin 21 Sep, 2023
I just tried this with the default joomla content table, using id,title fields and it loaded the options first time
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
jformicola 21 Sep, 2023
hmmm, don't know what to say. It's definitely still happening for me.
What version of joomla and php are you testing with?
My site opens https, yours?

Thanks Max
Max_admin 21 Sep, 2023
this should not affect the dropdown I think.

Please try the following, when you open the page at the first time (when the dropdown is not filled), does your form debug show the results returned from "Read data" ? your form debug should be enabled of course
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
jformicola 21 Sep, 2023
Yes. The data is loaded into the arrays on the debug.

Still the same issue, when I click on the drop down and nothing is populated.
Max_admin 21 Sep, 2023
the action is before or after the dropdown ?
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
jformicola 21 Sep, 2023
Answer
That was it. I liked having them below when I set them up. Didn't realize the ramifications while doing so. Makes sense, it runs top down.

Thank you!
Max_admin 21 Sep, 2023
no worries, the action has to run first to load the data, next the dropdown can be displayed.
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
You need to login to be able to post a reply.