E
d
i
t

F
o
r
m

J
a
v
a
s
c
r
i
p
t

<-- Back to Glossary Items

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);
});

The console.log will display the object so you can see what you need to pick up on to instigate actions.