...
This routine is available starting with
...
Button handy |
---|
blank | true |
---|
color | #0052CC |
---|
name | Send Feedback |
---|
link | https://docs.google.com/forms/d/e/1FAIpQLScmToBe3vynAlb5fdKwCGxYqnTbDc66sIBgeecG2BuFDuHc7g/viewform?entry.2002826954=lfHideTab+-+15480548 |
---|
width | auto |
---|
|
Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | lfHideTab(field) | Package | | Alias | | Pkg Usage | | |
Description
Excerpt |
---|
|
Hides the specified tab. |
Hides the specified tab. This
...
function only handles the field tab and tabs defined by the user. If you want to hide the tabs from the Activity panel, see lfHide
...
function.
Warning |
---|
title | Hiding 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 |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
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 function only for the cases when you want to add certain logic on the screen only. |
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 3525 |
---|
showSpace | false | sort | title |
---|
cql | label = "lf_routine" and space = currentSpace ( ) |
---|
labels | array_routines" |
---|
|