How to submit JForm form based on custom dropdown list value change

by wanderlusted   Last Updated January 23, 2019 18:10 PM - source

I'm working on a custom Joomla module. I have a JForm that contains multiple custom dropdown lists based on JFormFieldList. The form should be submitted when a value is selected from one of the custom lists.

What is the best way to do this? It seems that I should add the following expression to select html tag: onchange="this.form.submit()

But as the html select tag is not directly generated by my code, I'm not sure how to do this the best.

Any hints are highly appreciated! Thanks!

Related Questions

Listboxes and summary message at the bottom.

Updated August 10, 2015 19:04 PM

Save Dynamic Array of textboxes

Updated July 30, 2015 14:04 PM

Init Joomla JFormValidator

Updated August 05, 2015 13:04 PM

TypeError: Form is Null on Button in Admin ttoolbar

Updated August 15, 2019 13:10 PM