I have a form with only one "select" dropdown field.
Is it possible to automatically submit the form every time the select field's value is changed?
Thanks

Shane
Supporter
Les langues:
Anglais (English )
Fuseau horaire:
America/Jamaica (GMT-05:00)
Hello,
This is not possible by default but you should be able to achieve it by using some javascript to trigger the action.
You can use the link below as it provides an example on how to do this.
https://stackoverflow.com/questions/28122019/how-to-submit-form-on-select-change/35418634
Please let me know if this helps.
Thanks,
Shane
I was trying
jQuery("input[type='select']").change(function() {
jQuery(this).submit();
});
but somehow I cannot get it work.
Do I miss something?

Shane
Supporter
Les langues:
Anglais (English )
Fuseau horaire:
America/Jamaica (GMT-05:00)
Hello,
Can you try this.
jQuery(document).ready(function() {
jQuery('input[type='select']').on('change', function() {
var $form = jQuery(this).closest('form');
$form.find('input[type=submit]').click();
});
});
Please let me know if this works.
Thanks,
Shane