Skip to main content
Participating Frequently
December 17, 2024
Question

Hidden conditional text appears in table of contents

  • December 17, 2024
  • 5 replies
  • 937 views

I'm having two issues with conditional text that I have not been able to find explanations for in these discussions or in the FM user guide.

 

1. I have used conditional tags to hide content but the content still appears in the table of contents. Specifically, I have figures with conditional tags that I want to hide for a specific version of the document. However, when I hide the figure with the conditional tag, the figure is still listed in the table of contents/list of figures. The same issue happens with paragraphs hidden in the document still being listed in the table of contents. Are there ways to keep the hidden content from showing up in the table of contents/list of figures? 

 

2. A related issue I'm having is that when I hide a figure with conditional text (e.g., Figure 1.1), I would like for the remaining figure numbers in the document to shift to accommodate the hidden figure so that when I hide Figure 1.1, Figure 1.2 then becomes the new Figure 1.1. Is it possible to have FM automatically shift numbering to prevent gaps in the numbering caused by hidden content?

Thanks.

This topic has been closed for replies.

5 replies

Community Expert
December 18, 2024

Could it be that your problem figures and paragraphs have both conditions applied? When you hide one of them the other one is still set to show.

Or do you actually not hide your condition, but just apply e.g. white font color, so that it will be invisible, but still there?

Participating Frequently
December 18, 2024

I don't think this is the issue. I have only one condition applied to each case, and I am hiding the conditions rather than changing the font colors.

Community Expert
December 19, 2024

OK.

And you approach with one-cell tables is very good and very reliable. That's what I do as well.

Another question: Do you possibly use Track Text Edits? This feature uses conditions in the background and can interfere with the display of conditions. When you set your document to "Preview Final", it could be that text (or tables) with a condition and with a Track Text Edit property is shown although it should be hidden.

Participating Frequently
December 17, 2024

Yes, I've updated the file and book but the hidden content still appears in the TOC/LOF and the figure numbers leave gaps for the hidden figures. 

 

Just to complicate things, I'm realizing now that the issue only happens in one of my two versions of the book. I have a version of the book that shows "conditional tag A" and a version that shows "conditional tag B." When I show "conditional tag A", the numbering and TOC/LOF automatically adjust, but when I show "conditional tag B" the numbering does not adjust and the TOC/LOF still includes hidden content. I'm trying to figure out how these two figures are different, but I have yet to find anything that seems to differentiate the two figures. 

Jeff_Coatsworth
Community Expert
December 17, 2024

Sounds like you got condition B's contents set up in a different way than you do A.

frameexpert
Community Expert
December 17, 2024

I am not seeing this behavior in either FrameMaker 2019 (17.0.7) or 2022 (17.0.3). My hidden conditions are not showing up in the TOC.

Bob_Niland
Community Expert
December 17, 2024

For Xref'd content, including TOC, IX, LOF, etc., I wouldn't be surprised if the Condition Code state that hides it at the source needs also to be applied to the referencing files.

As far as the autonumber issue, what happens if you perform an Update (file, then book) after applying the CC?

Jeff_Coatsworth
Community Expert
December 17, 2024

After you hide the conditional text, do you perform an update of the book to create a new TOC?