Home General Discussion
Options

Help Please

CaterhamITSupportCaterhamITSupport Member Advanced IT Monkey ✭✭✭

Dear All,

I need to hide a label if classification = something and tab = something. I have the following code which doesnt work, please help?

Kind Regards

Daniel

(function(){


app.custom.formTasks.add('Incident', null, function (formObj, viewModel) { 


var tabName = "Tab Name"; 


$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {


 if($(e.target).data().cid == tabName && viewModel.Classification.Id == 'ID'){


 $(".form-group label[for='Label']").parent().hide();


 } else {


 $(".form-group label[for='Label']").parent().show();


 }


});

Best Answer

Answers

Sign In or Register to comment.