OK, trying to switch from MS Word to LibreOffice Writer and experimenting with the latter. I need to figure out a way to create a document that contains two things: a simple edit box and a text field that automatically contains whatever text the user will enter into the edit box.
In MS Word it looks like this:
Basically here the first line has a legacy edit box with a bookmark name assigned to it (let’s call it “Text1”. Importantly, the legacy edit box has “Calculate on exit” option checked. And the second line contains { REF Text1 }
field.
Then you protect the document allowing only form filling and every time you type something in the control (edit box) and tab out of it, the second line text gets updated with whatever you have typed.
So now I am trying to do the same in LibreOffice Writer. So far I have figured out how to do the following:
- I know how to create form controls (I was pleasantly surprised, they are much richer than in Word, this is the main reason I want to switch to LibreOffice Writer)
- I know how to create a bookmark around specific fixed text in the document
- I know how to create a cross-reference field that shows text content of a previously created bookmark
What I can’t figure out is how to link 1 with 2 and 3 so that the cross-reference field (or any other more appropriate field) shows the content of the form control and not a fixed bookmarked text.
If bookmarking is a way to solve this problem (like in Word), I can’t find a way to appoint a bookmark name to the form control and I also do not see any equivalent of “Calculate on exit” when I look at the form control properties.
I did try manually creating a bookmark around entire form control, but it did not ingest the content of the control (basically whatever I type is not getting reflected in the cross-reference field).
Does anyone know what I am missing?