Hide task if support group =
Dear All,
I need to hide a task on the incident form if the support group equals something like below. The code doesnt work can you help?
Thanks
Daniel
//Removing tasks for support group
app.custom.formTasks.add('Incident', null, function (formObj, viewModel) {
formObj.boundReady(function () {
//Hide task if equal support group
if(viewModel.TierQueue.id == 'Support Group')
{
$( ".taskmenu li:contains('Assign To Me')" ).hide()
}
});
return;
});
Answers
This is now sorted.