Contents
Index 🔎︎

# Hiding Text

You can use fields and sections to hide or display text in your document if a condition is met.

Before you can hide text, you must first create a variable to use in the condition for hiding the text.

## To Create a Variable

1. Click in your document and choose Insert - Field - More Fields.

2. Click the Variables tab and click "Set Variable" in the Type list.

3. Click "General" in the Format list.

4. Type a name for the variable in the Name box, for example, Hide.

5. Enter a value for the variable in the Value box, for example, 1.

6. To hide the variable in your document, select Invisible.

7. Click Insert and Close.

## To Hide Text

1. ලේඛනයෙහි හරස් විමර්ශනය ඇතුළු කල යුතු තැන ක්ලික් කරන්න.

2. Choose Insert - Field - More Fields and click the Functions tab.

3. Click "Hidden Text" in the Type list.

4. Enter a statement in the Condition box. For example, using the variable you previously defined, enter Hide==1.

5. Type the text that you want to hide in the Hidden text box.

6. Click Insert and Close.

## To Hide a Paragraph

1. ලේඛනයෙහි හරස් විමර්ශනය ඇතුළු කල යුතු තැන ක්ලික් කරන්න.

2. Choose Insert - Field - More Fields and click the Functions tab.

3. Click "Hidden Paragraph" in the Type list.

4. Enter a statement in the Condition box. For example, using the variable you previously defined, enter Hide==1.

5. Click Insert and Close.

You must enable this feature by removing the check mark from menu View - Hidden Paragraphs. When the check mark is set, you cannot hide any paragraph.

## To Hide a Section

1. Select the text that you want to hide in your document.

2. තෝරන්නChoose ශීර්ෂපාඨය-ඇතුල් කරන්න.

3. In the Hide area, select Hide, and then enter an expression in the Condition box. For example, using the variable you previously defined, enter Hide==1.

4. Click Insert.

Related Topics

D'oh! You found a bug (text/swriter/guide/conditional_text.xhp#conditional_text not found).

Querying User Data in Fields or Conditions

Displaying Hidden Text

Creating Non-printing Text

පිටුසනක් ඇතුලත් කරන්න

පිටුසනක් ඇතුලත් කරන්න

මෙහෙයුම් සංකේත ලයිස්තුව