Word plugin in track change mode: Field Code Changed
I have a little issue that may be deemed as a feature request. Every time I add or change a citation within a Word file, Track changes label *every* reference with a "Field Code Changed" by Unknown User. This is a harmless thing, and I have observed no issues working with Zotero in Word while Track Changes is turned on (despite warnings for earlier versions of the Zotero plugin). However, with many many references in some of these files, these are becoming quite an annoyance, especially when I am hoping to convert my fellow co-workers from EndNote, who all heavily depend on Track Changes and reference manager software.
Is there a way to avoid Track Changes messages for citations that are not modified?
Is there a way to avoid Track Changes messages for citations that are not modified?
However, after some testing I realized I observe this phenomenon sometimes only. It may have to do with inserting new citations for previously cited items which triggers this, or using Mac Word in 2008 compatibility mode. I will get back if I can pin down when this happens reproducibly.
How I avoid the issue is by turning off MS Word's track changes feature prior to adding a citation. If I forgot to do so and I ended up with a ton of "Field Code Changed" instances, I simply undo my last action, turn off track changes, then repeat my citation addition.
Hope this helps
I did not think of this as a bug, but a feature request where Zotero could somehow fool Word not to change other fields' field code. And according to Simon, who is a Zotero developer, this should not be happening at all. But you confirm that it does.
In my case, it happens only sometimes. I can't figure out the exact circumstances...
As I stated above, you should only notice this issue if you are adding a citation that has not been previously cited in your document. This is due to all future reference numbers increasing by one, which Word interprets as a change to the document. Since zotero's citation numbers are fields, this change is represented by a change to the field codes. I encounter the same issue due to an unrelated cause when I add or delete equations, which is also represented as a field code change.
Again, I have found that turning of "track changes" in Word's review functionality right before adding a new citation then turning it back on after is the best/only solution for this annoyance.
Has anyone got to the bottom of why this occurs?
I posted a separate features request and was asked to keep this thread going instead. Really encourage others to chip-in their thoughts if this is a problem for them too.
On the question of *why* it happens...
- I think the major problem lies in introducing a new reference to a document when tracked changes are on. If you introduce a new one and delete another then the changes will cancel each other out and the problem is less likely to be seen...
I suppose that you are sharing your document with a colleague or a supervisor. The way I handle this is to always share a copy of my working document that has all field codes removed. I turn on track changes in the copy I forward to my colleague. That way the colleague / supervisor can make changes and comments without affecting my original work and I can then easily see the comments and incorporate them into my working copy.
Although I haven't verified this recently, this "problem" occurs with other bib management software (BMS) such as EndNote and Mandeley. The BMS is doing its job facilitating keeping track of citation number changes and the word processor is doing its job by marking the changes.
All my remarks notwithstanding, if there is a way to avoid these changes being flagged, I would be pleased to have a way around this.
{ADDIN ZOTERO_ITEM CSL_CITATION {"citationID":"143koljv0e","properties":{"formattedCitation":"{
Followed by about 1 page of text that spell out each new citation. If I try accept changes, the text stays there; if I try remove markup, the text remains. It is WAY more of a pain than the field code changes since I don't know if I delete this text whether or not it will mess up something with my citations.
When field codes pop up, click Accept twice. That will hide the codes for that reference — this is just Word showing you that codes were change. You don’t have to turn off Track Changes. It really does work without any hassle.
That said, it is really difficult for any Word Add-in (Zotero, Endnote, Mendeley, etc.) to interact with track changes, because the controls for this have changed many times over the versions. This is even an issue for Word’s native (terrible) bibliography function and the Word “Compatibilty Mode” feature. The Zotero developers have and continue to look into ways to make it work more nicely with Track Changes, but it is a very difficult problem to solve (not least which because it’s not clear that disabling tracking is the desired behavior).
You can use a Macro yourself to accept all tracked changes in Fields in one go (so your workflow would be to use this macro to accept field changes, then proceed with the rest of your review).
http://www.msofficeforums.com/word/23330-how-get-track-changes-ignore-field-code.html
I appreciate that changes to word make this difficult for developers. That said I would view this as critical for many users (see the numerous threads on this issue in Zotero's forum). I appreciate the uncertainty of the Zotero team as to what the desired behavior is for users. But could that not be solved by giving this as an option in the settings, giving users the ability to choose which behavior they want and change their minds down the road if needed?
I did numerous searches and tried the approach you suggested before originally posting. I created a new macro, pasted the code and then ran it on a 'corrupted' document. Nothing happened! I don't know if there is something I am missing or if this reflects another change in Word (solution is from/for 2010, I am running 2013/2016). If this was addressed with updated macro code on the Zotero website that would be a step in the right direction.
Regarding whether this was "fixed" in the past, it used to be that Zotero documents could get easily corrupted with Track Changes on. This was fixed, but that never changed Word's default behavior to track changes to documents, including changes to field codes.
I appreciate your explanation and suggestions, but this remains a critical issue for me and I believe many others.
If I was not concerned about tracking the reference changes, then that works great for me, with a minimum of fuss.
It did list all the changes in the Zotero document. And when I moved to Next Change, it would display a large chunk of text consisting of the field codes, and was difficult to review and accept one change at a time. I assume the field codes in Zotero and EndNote are similar, so I am not sure why Word is treating them differently.
Does Word recognize EndNote and not display the changes there?
If so, if this is built in, can we request that Word add a feature to recognize Zotero?
While there may be some hack, where we can run code or replace files in the system, it makes those of us concerned about security nervous to do this, unless it comes from an official site - e.g. Word or Zotero
Thank you