Hiding a notebook tab
You can hide a notebook tab by setting the Hidden property to True and toggle it visible or hidden by creating and using a form script.
Note: The notebook tab is hidden on the web
client display only. These methods are not applicable to the Windows client (smart) client display.
To toggle the notebook tab visibility, you can create a form script similar to this:
{
public class MJS_HiddenNotebookTab : FormScript
{
public void toggleTabVis() {
var nbTab = ThisForm.Components[“notebookTab”];
string formvar = ThisForm.Components(“tabVisibility”).Value;
if (formvar == “true”) {
nbTab.Visible = true;
} else {
nbTab.Visible = false;
}
}
}
}
Note: This script is
written in C#.
If you copy this script, you must create a tabVisibility variable and a button component with a toggleTabVis()parameter to match the form script.
When you launch the form in the web client, the notebook tab should be hidden. To show this tab, you must do whatever is required to trigger the form script.