Page 1 of 1

A way to hide certain Facts in an Individuals box in a diagram?

Posted: 04 Aug 2024 19:44
by JohnB47
I have a particular individual, who has only one Fact (Birth) and I want to keep that Fact in the record but have it not shown in that persons box in Diagrams. Is that possible?

I've tried making the Fact private but that doesn't work. Also I've looked at Help and found this under Fact Flags, which I can replicate but not in my Custom text scheme (I can't find the "untick Include Private Facts" option):

"Hiding private facts in diagrams is less straightforward. If you are using the All Events and Attributes text scheme, in your diagram, for example, you need to edit the text (in the Text tab of Diagram Options), and then edit the <all events & attributes> item, and untick Include Private Facts."

How do I hide private facts, in a Diagram, if I'm using a custom text scheme: Birth, Marr, Death, Nickname (Custom)?

Thanks. Edit: see attached screenshot - where do I go from here?

Re: A way to hide certain Facts in an Individuals box in a diagram?

Posted: 04 Aug 2024 20:34
by tatewise
Edit the Birth item and use the Template:
=TextIf( Exists( %INDI.BIRT._FLGS.__PRIVATE% ), "", FactText( %INDI.BIRT%, "CT", "E_Born: _ in _" ) )
where
=TextIf( ... ) is the conventional way of conditionally including/excluding text
Exists( ... ) is the way to set the condition by testing the Fact Private Flag existence
%INDI.BIRT._FLGS.__PRIVATE% is the Data Reference for the Fact Private Flag
FactText( ... ) is the original Birth item display template

Re: A way to hide certain Facts in an Individuals box in a diagram?

Posted: 05 Aug 2024 11:58
by JohnB47
Thank you Mike.

That has worked perfectly. Thanks also for explaining the code.