AnsweredAssumed Answered

Hide checkbox in tab except on certain category

Question asked by JoeSchmo on Aug 10, 2016
Latest reply on Aug 10, 2016 by pier-olivier.tremblay

We have a custom checkbox in our Outage tab, and we want to hide it except on a specific Category.

 

I have followed this code successfully for conditionally hiding things via a checkbox: Conditionally display of field

<PDM_MACRO name=dtlCheckbox hdr="test" attr=string1>
jQuery(function(){

jQuery(':checkbox').change(function(){
  if(jQuery(this).is(':checked'))
        {
  jQuery('select[name="SET.urgency"]').hide();
  jQuery('label[for="df_2_0"]').hide();
  }
  else
  {
  jQuery('select[name="SET.urgency"]').show();
  jQuery('label[for="df_2_0"]').show();
  }
}

)});

 

But I'm having 2 issues.

1) How do I select the value out of Category?

2) How do get to the Outage tab checkbox?

Outcomes