Forums

Prepopulate second dynamic dropdown

Pigna 07 Feb, 2018
Hi!

I've a form with two dynamic dropdown. Drop1 is prepopulated with {var:read_data4}. Drop2 is empty, when the user select a value of drop1 it is populated by a reload event with the value of {var:read_data5}. Everything is ok.

Now i need to prepopulate drop2 with all values when form is loaded. I can made another read (es: read_data6) and put {var:read_data6} in the "Options" field of the dropdown instead of read_data5, but so the reload event will not work anymore.

Any idea? Thank you!
Max_admin 08 Feb, 2018
Answer
1 Likes
Hi Pigna,

Leave {var:read_data5} in the options of drop2, but add after it {var:read_data6}, this will run both of them.

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Pigna 08 Feb, 2018
1 Likes
Yes, now everything works!

Thank you Max!
This topic is locked and no more replies can be posted.