Bug 130241 - FILEOPEN DOCX: Writer does not display custom non-existing field names (Ctrl+Ff9 in LO and Alt+F9 in MSO)
Summary: FILEOPEN DOCX: Writer does not display custom non-existing field names (Ctrl+...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
: 131225 (view as bug list)
Depends on:
Blocks: DOCX-Fields
  Show dependency treegraph
 
Reported: 2020-01-28 12:21 UTC by Robin K
Modified: 2022-04-25 09:25 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments
Test doc that contains field anmes that don't show (117.30 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-01-28 12:22 UTC, Robin K
Details
Screenshot of field names in Word 365 (67.96 KB, image/png)
2020-01-29 07:52 UTC, Robin K
Details
Test doc that contains field names that don't show (46.36 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-01-29 07:53 UTC, Robin K
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robin K 2020-01-28 12:21:03 UTC
Description:
When in a .docx document that uses field names, enabling view -> field names (ctrl-f9) shows only the field names in the header. Opening the same document in word allows me to view and edit all the field names.

Steps to Reproduce:
1.Open attached document in libreoffice
2.enable viewing field names (ctrl-f9)

Actual Results:
Don't see any of the field names, except the 2 in the header

Expected Results:
See all field names


Reproducible: Always


User Profile Reset: Yes



Additional Info:
To see what should have happened, open the file in MS Word
Comment 1 Robin K 2020-01-28 12:22:17 UTC Comment hidden (obsolete)
Comment 2 Dieter 2020-01-28 13:19:12 UTC Comment hidden (obsolete)
Comment 3 Robin K 2020-01-28 19:35:31 UTC
(In reply to Dieter Praas from comment #2)
> (In reply to Robin K from comment #1)
> > Created attachment 157480 [details]
> > Test doc that contains field anmes that don't show
> 
> How can I enable viewing field names in MS Word 2016?

Alt+F9

Alternatively, File -> options -> advanced -> check 'Show field codes instead of their values'
Comment 4 Dieter 2020-01-28 20:55:47 UTC Comment hidden (obsolete)
Comment 5 Robin K 2020-01-29 07:50:49 UTC
(In reply to Dieter Praas from comment #4)
> With field names enabled in MS Word 2016 I can only see the two field names
> in the header. Perhaps I've overseen something. Where can I find the others?
> 
> => NEEDINFO

FYI I'm verifying the described steps using my office 2010 and office 365 installs, so this *should* apply to 2016, but I can't personally check.

You can shade all fields by going to File -> options -> advanced -> Field Shading = 'Always' (setting below the previously mentioned field codes checkbox)

On the first page to the right of the string 'Author' there are some field names.
From page 2 onwards they are literally everywhere.

They are also in the center of the header, not just to the right for page numbering.

Following attachment is a screenshot of my view in word 365.
Comment 6 Robin K 2020-01-29 07:52:27 UTC
Created attachment 157488 [details]
Screenshot of field names in Word 365

Word has 'show field codes' enabled, and shades all fields for clarity.
Comment 7 Robin K 2020-01-29 07:53:37 UTC
Created attachment 157489 [details]
Test doc that contains field names that don't show
Comment 8 Robin K 2020-01-29 07:54:29 UTC
Realised I uploaded the wrong test doc, one without field names. My apologies
Comment 9 Dieter 2020-01-29 12:24:17 UTC
Tested with your document from comment 7

I confirm the bug is present in

Version: 6.3.4.2 (x64)
Build-ID: 60da17e045e08f1793c57c00ba83cdfce946d0aa
CPU-Threads: 4; BS: Windows 10.0; UI-Render: Standard; VCL: win; 
Gebietsschema: de-DE (de_DE); UI-Sprache: de-DE
Calc: threaded

and also in

Version: 7.0.0.0.alpha0+ (x64)
Build ID: eeb2d19e77d6dc47c68e8ba0920a02cf64a1247b
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: default; VCL: win; 
Locale: de-DE (de_DE); UI-Language: en-GB
Calc: threaded
Comment 10 Timur 2020-03-18 14:18:47 UTC
*** Bug 131225 has been marked as a duplicate of this bug. ***
Comment 11 QA Administrators 2022-03-20 03:30:37 UTC Comment hidden (obsolete)
Comment 12 Timur 2022-03-21 09:10:29 UTC
Repro 7.4+.
Comment 13 Justin L 2022-04-25 05:20:21 UTC
I don't really understand this bug report. AFAICS, not only can you not see the field names, but the fields themselves do not even exist. So why talk about field names if the fields themselves don't function?

P.S. Word 2003 (with docx extensions so it can normally read DOCX) cannot open this file.