Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This routine is available starting with 

  • Power Scripts 2.5.12 / 2.6.7 (server)
  • SIL Engine (former katl-commons) 2.5.16 / 2.6.8
    Info
    titleAvailability
    Table plus
    applyColStyleToCelltrue
    heading0
    columnTypess,s,s,s
    multiplefalse
    columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
    enableSortingfalse

    Syntax

    lfHideTab(field)

    Package

    Alias

    Pkg Usage

    Description

    Excerpt
    hiddentrue
    Hides the specified tab.

    Hides the specified tab. This routine only handles the field tab and tabs defined by the user. If you want to hide the tabs from the Activity panel, see lfHide routine.

    ...

    Warning
    titleHiding fields and security

    Hiding fields is not a security solution, the field is present in HTML and can still be inspected via a Show page source option.

    We recommend that you use this routine only for the cases when you want to add certain logic on the screen only.

    Parameters

    ...

    Parameters

    Table plus
    applyColStyleToCelltrue
    columnTypess,s,s,s
    heading0
    multiplefalse
    enableSortingfalse

    Parameter name

    Type

    Required

    Description

    field

    String

    Yes

    Specifies the tab to hide.

    Return Type

    None

    Example

    If the assignee is not admin, hide the Field Tab from the issue.

    Code Block
     if(assignee != "admin") {
         lfHideTab("Field Tab");
     } 

    Now that the field is hidden, you can use use lfShowTab to display it on the issue screen.

    Note

    Hiding fields is not a security solution, the field is present in HTML and can still be inspected via a Show page source option. We recommend that you use this routine only for the cases when you want to add certain logic on the screen only.

    See also

    Filter by label (Content by label)
    showLabelsfalse
    max3525
    showSpacefalse
    sorttitle
    cqllabel = "lf_routine" and space = currentSpace ( )
    labelsarray_routines