Document Name in Footer

Document Name in Footer

Hi, in the Footer it's possible to add the Document Name from a field button on the Insert toolbar.

Is this Document Name dynamic or is it permanently set to whatever the document name was when it was created?

Thanks