Forums

Change event on field text

SyLiz 06 Sep, 2017
Hi,

I got a text field and checkboxes in a form. I'm trying to hide checkboxes when i write in the text field.
So i tried to use the change event :

[attachment=109459_20170906124609_chronoforms-jpg.jpg][/attachment]

So when i write in the text field, nothing happen.
Maybe i'm misunderstanding the utility of the change event ?

Thanks for your help,
Max_admin 06 Sep, 2017
Hi SyLiz,

The element identifier should not have [], please try that and let us know.

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

Thanks for your help, you were right.
What i want to achieve is to reload checkboxes and search in database everytime i type a letter in the text field.
Is it possible to do it with chronoforms utility only or do i need to use php ?

Best regards,
Max_admin 08 Sep, 2017
Hi SyLiz,

And after you search the database, what should happen ?

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

Yeah i forgot that part.
I'd like it to fill checkboxes with multiples results from database. The table shouldn't be really big.

Best regards,
Max_admin 20 Sep, 2017
Hi SyLiz,

You will need to add a "Reload" event to your text field on "change", then you can follow the same steps as the steps for a dynamic dropdown in the manual.

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.