[macOS] Cannot go back to displaying field values after "Toggle field codes"

Hello all,

I see a weird behaviour on macOS with documents: if I have a document with a field in it - either created directly with “Insert” - “Field” or indirectly with “Insert” - “Date & time” for example -, if I click on it, I can see that it is indeed a field: the background color for the text changes, and right-clicking on it shows the entries for fields in the contextual menu (“Update field”, “Edit field” & “Toggle field codes”).

So far so good. Now if I select “Toggle field codes” in the contextual menu, it does what it is supposed to do: the field value is replaced by its code in the document’s text. But after that, if I click on the field code, I can’t get the insertion point inside it, it is always moved just before the field code, and the text background color doesn’t change. Worse: if I right-click on the field code and select “Toggle field codes”, nothing happens: the field code stays on display and there doesn’t seem to be any easy way to get the field value back. Doing a wider selection, then selecting “Toggle field codes” in the contextual menu doesn’t work either: the field codes are still displayed, and not their values. The only way I found to get back to displaying field values is to close the document and re-open it.

I didn’t see this behaviour on the other platform I can test which is Linux, so it seems to be a macOS-specific issue.

Thanks!

OS version: macOS Ventura 13.7.5
OnlyOffice version: 8.3.3
Downloaded from: official website

Hello @eb303

I did not manage to reproduce the issue. Does a specific document produce it or even an empty new one? Can you record a quick demo of your actions?

Hello and thanks for your answer.

While trying to record a video of the issue, I realized that it is indeed not systematic: if I create a new document and create a field in it, I don’t get the problem, “Toggle field codes” works as expected.

But I did manage to create a document where there is the issue described in the original post. I have to say I don’t know how I did it; I’ve tried to create another document showing the same behavior, but I didn’t succeed. I’ve uploaded the problematic document here. Hopefully, you’ll get the same behavior.

Thanks again!

Update: I just transferred the problematic document to another PC with another OS (Linux openSuse Leap 15.6), and I’m getting the same behavior: “Toggle field codes” does show the field code in the document when I first call it, but I can’t get back to the field value without closing the document and reopening it.

I also noticed something strange: when I do the first “Toggle field codes”, what is shown in the document does not seem to be correct. It shows ‘TIME @ “hh:mm:ss”’, without the '' in front of the ‘@’. The weird thing is, if I right-click on the field and select “Edit field”, the code shown is not the same one: it shows ‘TIME @ “HH:mm:ss”’, which is correct. This does not happen on other fields in other documents: the code shown via “Toggle field codes” and “Edit field” are the same ones. Could this be another symptom of the same issue?

Thanks!

Please see my reply to another topic of yours: