Autocompleter [CF5 or CF6]

jack19 10 Apr, 2017
Hi to all,
is a bit of time that I had no need to use Autocompleter.
A few years ago I also made a tutorial that you can find here:
https://www.chronoengine.com/forums/posts/f9/t88300.html?page=1

Now I can not find how to implement it with versions of CF5 and CF6.
Can you give me a tip?

Best Regards.
Gioacchino
Max_admin 10 Apr, 2017
Hi Gioacchino,

The completer data is static or will be loaded from a database table ?

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
jack19 11 Apr, 2017
Hi Max,

will be loaded from a database table.

Rgds
Gioacchino
Max_admin 11 Apr, 2017
Hi Gioacchino,

In v6, please drag a dropdown element, open the "Advanced" area, set the "Auto completer" event to say "auto" and the minimum characters to "1" or leave it at 0.

Now under the "Events" section of the FORM, create a new event named "auto", then drag a "read data" action inside it, set the "model name", select the table and any conditions you need, set the "select type" to "Key/val array" and in the "Fields to retrieve", write two fields in two lines, say:

Model.id
Model.title

Then drag a "custom code" action and write this:

{var/jsonen:read_data_action_name}


That should do it, where "read_data_action_name" is the name of the read data action, which is shown with a black label.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
jack19 12 Apr, 2017
:cry:
Hi Max.
Don't work.
See video[youtube]39NsRzVG32c[/youtube]
:? 😢
Best Regards
Gioacchino
Max_admin 12 Apr, 2017
Hi Jack,

Your config is correct after the Model name fix at the end of the video, but I found a bug in the code, this is why it didn't work for you, I have fixed this here and have created a demo form too, would you like to have them now or wait for the next official update ? if now then please send me a message using the contact us page.

Which software do you use to create the video ?🙂

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Max_admin 12 Apr, 2017
Hi Gioacchino,

The new update is supposed to be ready by the next week, if not then please send me a message and I will send you the latest files.

And thank you very much for the software tips.

Best regards,
Max
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.