How to create a hidden section?

I need to create a section which should be visible only if the title of the document is specified (I mean the title that is specified in File > Properties > Description > Title).

Here is what I tried:

  1. In the menu bar, select Insert and then select Section.
  2. Check the Hide check box.
  3. But what should I write in the Condition field? I have tried document_title != "" and title != "", but this doesn’t work.

As far as I know you can’t do that. There are at least two reasons:

  1. the Title is a field in DocInformation tab but it has no variable name
  2. you can’t transfer a field value into another variable

To do what you want, you’d need to write a conditional expression as you describe above, i.e. some user variable == or != something. But you can’t do it according to 1 above. And since you can’t copy variables according to 2, there is no possible workaround with a user variable.

This only way I know to have “configurable” document contents is to define a set of variables (commonly with 0/1 values). These cannot be “properties”. Then you can Insert>Field>More Fields, Functions tab, Hidden Paragraph or Hidden text. With your defined variables, you can also insert conditional (hidden) sections.

Be aware that designing a consistent set of variables is not trivial.

Thanks, ajlittoz.