ui.apps/src/main/content/jcr_root/apps/acs-commons/touchui-widgets/showhidedialogfields/source/showhidedialogfieldstabs.js
/**
   * Checks if the element should be visible based on selected dropdown value
   * and checkbox value
   */
Checks if the element should be visible based on selected dropdown value
and checkbox value
Checks if the element should be visible based on selected dropdown value and checkbox value
function shouldBeVisible($elem, dropdownValue, checkboxValue) {
    if ($elem.is('[data-acs-dropdownshowhidetargetvalue]') && $elem.is('[data-acs-checkboxshowhidetargetvalue]')) {
      return $elem.attr('data-acs-dropdownshowhidetargetvalue').indexOf(dropdownValue) >= 0 && $elem.attr('data-acs-checkboxshowhidetargetvalue') === checkboxValue;
    } else if ($elem.is('[data-acs-dropdownshowhidetargetvalue]')) {
      return $elem.attr('data-acs-dropdownshowhidetargetvalue').indexOf(dropdownValue) >= 0;
    } else if ($elem.is('[data-acs-checkboxshowhidetargetvalue]')) {
      return $elem.attr('data-acs-checkboxshowhidetargetvalue') === checkboxValue;
    }
    return false;
  }
function shouldBeVisible ( $elem , dropdownValue , checkboxValue ) { if ( $elem . is ( '[data-acs-dropdownshowhidetargetvalue]' ) && $elem . is ( '[data-acs-checkboxshowhidetargetvalue]' ) ) { return $elem . attr ( 'data-acs-dropdownshowhidetargetvalue' ) . indexOf ( dropdownValue ) >= 0 && $elem . attr ( 'data-acs-checkboxshowhidetargetvalue' ) === checkboxValue ; } else if ( $elem . is ( '[data-acs-dropdownshowhidetargetvalue]' ) ) { return $elem . attr ( 'data-acs-dropdownshowhidetargetvalue' ) . indexOf ( dropdownValue ) >= 0 ; } else if ( $elem . is ( '[data-acs-checkboxshowhidetargetvalue]' ) ) { return $elem . attr ( 'data-acs-checkboxshowhidetargetvalue' ) === checkboxValue ; } return false ; }
Checks if the element should be visible based on selected dropdown value
 and checkbox value
Checks if the element should be visible based on selected dropdown value and checkbox value