Page Edit JavaScript
Whenever something happens on a UDB page, an event is triggered.
You can intercept these events and run code.
$(document).on("UDB_Event", function(event, oEventData) {
console.log(oEventData);
var cForm_ID = "#" + oEventData.form_id + "_";
if (oEventData.type === 'Form_Edit' && oEventData.relat_id == '#:1234') {
// Do something here!
}
});
console.log(oEventData);
var cForm_ID = "#" + oEventData.form_id + "_";
if (oEventData.type === 'Form_Edit' && oEventData.relat_id == '#:1234') {
// Do something here!
}
});