top of page

Moji5 Knowledgebase

Add the javascript function at table save events

M5 allow you to add the javascript function when you save data in table.


How to Add the javascript function at table save events


Create a sub table in Form design & layout page. Naming as 'Staff Detail Information'. Click Edit Detail Form.


Click two fields which are Name and Position.


Click Save button.


Put alert('Data Saved') on Onclick javascript. Click Save changes.


Click Publish and return.







Click Generate now.


Run your application. How it look in the form:




bottom of page