Edit Form JavaScript
You can add JavaScript to an object by linking it as a component. If the title of the JavaScript contains the UDB Tag {EDIT} then it will only be included when the object is being edited.
UDB Forms generate events.
You can trap the events with the code:
$(document).on("UDB_Event", function(event, oEventData) {
console.log(oEventData);
var cForm_ID = "#" + oEventData.form_id + "_";
});
The console.log will display the object so you can see what you need to pick up on to instigate actions.