Hi,
I'm looking to execute my code only when the form is of type Create i.e. it hasn't been saved yet. Effectively, I want my code to only fire once, when the user is first entering data prior to saving the record.
var createForm = formContext.ui.getFormType;
if (createForm == 1) {
// do something
}
I've tried both retrieving the createdon field value and the formtype to serve this end; however, a value isn't returned for either.
If I alert createForm the value returned appears to be:
function() {
return this.$1P_1.getFormType();
}
Any ideas how to solve this?