I have a form in OctoberCMS backend and I want to make a javascript trigger that will be fired when the user save the form so I can manipulate the form fields.
The official documentations of OctoberCMS Docs is not saying anything about it. Any suggestions are welcome.
Advertisement
Answer
Actually, it was in the Documentations of OctoberCMS:
Executes JavaScript code when the ajaxUpdate event is triggered on an element.
$('.calcresult').on('ajaxUpdate', function() { console.log('Updated!'); });