Home General Discussion

Hide Field based upon support group and tab

CaterhamITSupportCaterhamITSupport Member Advanced IT Monkey ✭✭✭

Dear All,

I need some help, could someone give me some direction for code to hide a field if support group = Support Group and tab = Tab Something.

Kind Regards

Daniel

Answers

  • CaterhamITSupportCaterhamITSupport Member Advanced IT Monkey ✭✭✭

    So far i have managed to write this but doesnt work and I need to add support group.

    (function(){

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

    var tabName = "General"; 

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

     if($(e.target).data().cid == tabName) {

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

      } else {

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

      }

    });

Sign In or Register to comment.