change event on enum lists
Hi,
I feel like I'm very close, but no cigar. I have managed to listen for events when a related item change in the Incident form, but not enumeration list.
// Works pageForm.viewModel.HasRelatedWorkItems.bind("change", function (){ console.log("service changed!"); }); // Does not work pageForm.viewModel.Status.bind("change", function (){ console.log("Status changed!"); });
Can anyone share an example?
Thanks
Best Answer
-
Lutz_Kral Partner IT Monkey ✭
Hi,
here is an example.
// Binding on StatusChange app.custom.formTasks.add('Incident', null, function(formObj, viewModel){ formObj.boundChange("Status",function (formObj, viewModel) { console.log("Status changed!"); })});
This should work for enumerations and other properties.
7
Answers
Hi,
here is an example.
This should work for enumerations and other properties.
Yes of course! I did this before, but memory is failing. Getting old lol