Hide "Change Status" task for Resolved IR
Best Answers
-
Nicholas_Velich Cireson Consultant Ninja IT Monkey ✭✭✭✭Hi Aaron,
This should do the trick:app.custom.formTasks.add('Incident', null, function (formObj, viewModel) {formObj.boundReady(function(){$('[data-bind="click: changeStatus"]').hide();});});
Just add that to your custom.js file and you should be good to go!
Thanks,
Nick7 -
Nicholas_Velich Cireson Consultant Ninja IT Monkey ✭✭✭✭Adding to this, you might only want to hide the task when the Incident is Resolved. You could do that via the following:app.custom.formTasks.add('Incident', null, function (formObj, viewModel) {formObj.boundReady(function(){if(viewModel.Status.Id == "2b8830b6-59f0-f574-9c2a-f4b4682f1681"){$('[data-bind="click: changeStatus"]').hide();}});});7
Answers
This should do the trick:
Just add that to your custom.js file and you should be good to go!
Thanks,
Nick