Hi guys, Ive been through the demo for dropdowns that comes with v6 and unless I'm missing something really basic (like a dynamic data option in the dropdown settings?) I cannot get the dropdown dynamic demo to work on my cf6 form. Before I redo the form in CF5 is there a tutorial or how-to on this topic that i have missed, or can someone point me in the right direction? Do i need to install an add-on to get the dynamic data option back?
Thanks
Hi alvinson,
You want to:
#1- load the dropdown data from a database table on form start ?
#2- have a dropdown dependent on the selections of another one ?
#3- Load the dropdown options from the database upon typing some text ? (auto completer)
Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi
#1, load from database on form load. I tried the v5 way but without the dynamic data tab it would need more coding than usual, and my staff are used to creating dynamic dropdowns without coding.
Many thanks
Alvin
Hi Alvin,
You will need a "read data" action in the load event above the "display section", select your table, in the "select type" choose "key/value pairs" option, note the action "name" which is in black label.
Now in your dropdown settings, write this in the "options" box:
{var:read_data_name}
Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi Max
Thank you so much, that worked perfectly. Simple when you know how 😀
Hi ! in CF v6 how we do ? in CF v5 like demo "Basic form to demonstrate how you can load the dropdown options dynamically" and no "SET DYNAMIC OPTION' event in CF v6
#2- have a dropdown dependent on the selections of another one ?
Hi singh,
If the question is about loading the options from the database then there is a FAQ on this already here:
https://www.chronoengine.com/faqs/74-chronoforms6/5287-dynamic-dropdown-options.html
And for reloading a field:
https://www.chronoengine.com/faqs/74-chronoforms6/5299-how-to-reload-a-field.html
Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.