Fields in master documents: referencing a header title from another document

I am working with several files (eg: file1.odt file2.odt) which are combined in a master document and I would like to add a field to a chapter’s title (header) that belongs to another file (eg: I would like to add a field in file1.odt pointing to chapter 3 in file2.odt). I know it is possible to add fields using Insert\Fields\More Fields (CTRL+F2 and then select the desired header from the “Cross Reference” tab (it may be labelled something else, as I am not using an English version), provided I have used headers (which I have done so). Unfortunately the header list only displays the headers within the same document, so I haven’t found any way to link to a header belonging to another file.

Is there any way to fix that?

You need to do it in the “old school way”. This is the procedure:

1- Open file1.odt and select the paragraph used to mark the “chapter 3”, either by painting it with the mouse or by triple clicking on it.

2- Insert → Field → More fields → Cross reference tab. On Type select Set reference, give the reference a Name and press Insert.

3- Let’s say the reference name is “Cap3”. Now open file2.odt and go to the point where you need the cross reference. Insert → Field → More fields → Cross reference tab, but this time on Type select Insert reference. The list will be empty, but just type “Cap3” on Name and then press Insert.

You’ll see an error message on the document (Error: Reference source not found) but don’t worry: on the master document everything will be OK.

Although it is a bit weird (As there is an error on the orignal document), it works like charm, thank you for your answer!