how to populate dropdown with DB read

populate a dropdown with database values in ChronoForms 8.

Overview

The issue is confusion over the new method for creating dynamic dropdowns compared to older versions.
Consult the official ChronoForms 8 FAQs for tutorials on dynamic options, creating table lists, and building dependent dropdowns.

Answered
ChronoForms v8
Elita- Elita- 20 Dec, 2024

Grr...... PLEASE, SOMEBODY help with explaining how CF8 works!!! Its SO ANNOYING :( 

For example - how to Read data to dropdown? 

I CF6 everything was clear and self-explanatory. Now it is complete mess!!! 

How can I build a statement that woud return an array with key/value pairs based on conditions? Do i need to write full custom query or this function is somewhere hidden?!?!?!? and how can i set up the dropdown with the results? 

Elita

Max_admin Max_admin 20 Dec, 2024
Answer

We already have a tutorial for this:

https://chronoengine.com/faqs/chronoforms/chronoforms8/dynamic-options-for-dropdowns-and-multi-selection-fields

I think you did not give v8 enough attention, v8 is now much better than v6, just check the FAQs or post your question about what you need to do

this is how to do a listing:

https://www.chronoengine.com/faqs/chronoforms/chronoforms8/create-a-table-list-in-chronoforms8

And how to do dependent dropdowns:

https://www.chronoengine.com/faqs/chronoforms/chronoforms8/how-to-build-a-dynamic-dropdown-in-chronoforms-8

You can also do Auto complete or Reload form parts

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.