Bug 98284 - FILEOPEN: DOC: Fields do not auto-update on file open in MS Word, but they do in LO.
Summary: FILEOPEN: DOC: Fields do not auto-update on file open in MS Word, but they do...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
Keywords: filter:doc
Depends on:
Blocks: DOC-Fields
  Show dependency treegraph
Reported: 2016-02-29 20:25 UTC by Aldo
Modified: 2023-08-16 21:12 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:

In Bug4.zip file there are Bug4.doc and Bug4.pdf (63.23 KB, application/x-zip-compressed)
2016-02-29 20:25 UTC, Aldo

Note You need to log in before you can comment on or make changes to this bug.
Description Aldo 2016-02-29 20:25:43 UTC
Created attachment 123091 [details]
In Bug4.zip file there are Bug4.doc and Bug4.pdf

When I open the file with write appears 'MACRO CARRIER', in Bug4.pdf file the proper display obtained with MSOffice 2013.
Comment 1 Buovjaga 2016-03-09 09:51:47 UTC

Win 7 Pro 64-bit, Version: (x64)
Build ID: 5e3e00a007d9b3b6efb6797a8b8e57b51ab1f737
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
Locale: fi-FI (fi_FI)

Build ID: b89feb8018bf3610faf01e73995d576f6566e20b
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
TinderBox: Win-x86@39, Branch:master, Time: 2016-03-07_03:36:17
Locale: fi-FI (fi_FI)
Comment 2 QA Administrators 2017-12-11 08:53:24 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2019-12-12 03:40:17 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2021-12-12 04:21:16 UTC Comment hidden (obsolete, spam)
Comment 5 Justin L 2023-05-25 00:39:17 UTC
I know this problem very well, but I don't see an existing bug report about it.

MS Word does not automatically update fields to point to their variable values on file open. Instead, it just displays the last-saved-text. It is only when the user selects the field and presses F9 that the contents of the field change to match the variable's value.

In this document, when the field is updated, it displays MACRO CARRIER - which is the File - Properties - Title of the document.

LO automatically displays the variable in the field, and updates as soon as the variable changes (which seems very sensible...).

So for compatibility, LO needs to add a flag to variables to soft-lock the imported contents until they get an user-initiated refresh.
Comment 6 Justin L 2023-07-14 11:06:46 UTC
I started putting some notes together about fields. I hope it helps. Feel free to modify/update the wiki document. https://wiki.documentfoundation.org/Documentation/Fields
Comment 7 Justin L 2023-08-03 20:36:41 UTC Comment hidden (obsolete)
Comment 8 giovani 2023-08-16 21:07:25 UTC
Hi guys!

Thanks you all the feedback about this subject.

I think the main problem in my case is that in LO 7.3 I don't have this "fixed content" pre-checked and in LO 7.4 I did.

Why this behavior changes from LO 7.3 to LO 7.4 version? It's the same document with two different behaviors.

When Justin L says "(Unfortunately, LO needs to be extended to support both visual compatibility and F9 update-ability.)".

What "needs to be extended" is? Is some software to be installed?

Is there anything that I can do to maintain the behavior of the LO 7.3 version? In other words, is there anything that I can do to this custom fields update automatically?

I appologize my lack of knowledge on this subject.

Thank you all again,
Giovani Valle Dalbosco
Comment 9 giovani 2023-08-16 21:12:59 UTC Comment hidden (no-value)