Hi, I am using the Good theme with flask and I want to update dynamically a form with multiple dependent Select2 fields from my DB , is there a simple way of doing this ? here is an example with JS :
https://codepen.io/nik8singh/pen/XWZpQqB
I am using Flask WTForms with Select2
Many thanks
Hi,
Good does not have such examples. However you can consider using the above example by just running the JS code after the core JS scripts include in the page bottom on document ready event:
<script>
// On document ready
KTUtil.onDOMContentLoaded(function () {
// your code
});
</script>