Add a text label to your layout and set it to
or Insert/ Other Symbol -> FileName
This will take conditional formatting
Sorry, missed FM 11 bit. You can set a global variable on the start up script to Get ( FileName ) and add it as merged variable to your layout
You can apply conditional formatting to your text label. Set the text to be the same as the background colour on condition
Get ( WindowMode ) !=2
This will make the label visible only in Print mode
Sorry, edit post stopped working for me.
If you want to display full path instead of file name (not sure why but it is in your original post) swap FileName to FilePath.
Get(filepath) is what you want to use.
Get(filename) would do the job if you modify the file name such as FileName_COPY_14.fmpxx or other term. If you do that the pathname isn't needed. You can increment the number for historical purposes. Or add a timestamp.
Set a variable for one or the other or use two variables.
Set Variable $$_file to get(filename)
Then add a text label <<$$_file>> to the footer of your calendar and it will show the file name.
The last item on the Insert Menu will create <<$$>> and you add the file name
You can format the label as you prefer and use the top, left and right anchors to position it.