I have to call custom jquery function into Magento backend (sales > Order > View)
I have created custom js in adminhtml/web/js/order_status_validation.js
require(['jquery'], function(jQuery){
jQuery(function(){
function do_validation_history() {
alert('Coming');
return false;
}
});
});
While we can click on submit button we are getting an error like
ReferenceError: do_validation_history is not defined
I have called custom js into sales_order_view.xml
Can anyone know how we can resolve this error?
