Page 1 of 1

Expression for Marriage Icon

Posted: 08 Nov 2016 21:22
by TimTreeby
Have an expression to show a Marriage icon as

=ContainsText(%INDI.FAMS>MARR.SOUR>_TYPE%,"PR - Marriages",STD)

This works fine apart from one small problem that I have just spotted.

Have sources with different Source Types

I use SOURCE TYPE : PR- Marriages
and SOURCE TYPE : PR - Marriages (T)

depending whether have seen actual Parish Register Marriage Entry or just a Transcript.

I only want Marriage Icon to show if source type is "PR - Marriages" and not "PR - Marriages (T)"

Is there any way to change the expression to make it work or do I need to change Source Type slightly for the Transcript ones.

Re: Expression for Marriage Icon

Posted: 08 Nov 2016 22:02
by tatewise
See how_to:understanding_expressions|> Understanding Expressions for examples.
Use the =IsTrue( <type> = "PR - Marriages" ) style of expression.
I also advise you use CUR_FAMS context data ref so it refers to the displayed Family couple.