Skip to end of banner
Go to start of banner

lfHideTab

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

Availability

This routine is available starting with 

  1. Power Scripts 2.5.12/ 2.6.7 versions and above
  2. katl-commons 2.5.16/ 2.6.8 versions and above

Syntax

lfHideTab(field)

Description

Hides the given 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.

Hiding fields and security

Hiding fields on the screen is not secure. This is not a security solution, the field is present in HTML and can still be inspected via a simple Show page source.

We recommend that you use this routine to add certain logic in the screen only.


Parameters

ParameterTypeRequiredDescription
fieldStringYesSpecifies the tab to hide.

Example

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

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

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

See also


  • No labels