Formbuilder submit button
I have use the form builder to build a form on my controller, the form serve as sending different parameter to generate a chart, but now every time when i click the submit button , it will prompt the "confirm navigation" error message saying the data didn't save etc etc , is there anyway to turn off this ?
some of solutions I m consider
1. abandon the formbuilder class rebuild with form class
2. anyway to overwrite the class of submit button ? it seem like without class='submit' there will be no prompt message
Comments
Also in your MY_fuel.php config file, you can set $config['warn_if_modified'] = FALSE; which will turn that off for all modules.
just to share how i did this, must use click, if you use .submit, the checksave will fire first.
$(document).ready(function() { $('#submit').click(function(e){ $.removeChecksave(); }); }); </script>