Custom field "entrytype" resets upon modification
Thank you @ThiloteE , here is a way to replicate the second issue using fresh library.
- Create a new library
- Go to
Options->Customize entry types - Select
Articleand click on the drop down list. Please note that there is noEntrytypefield available in the drop down list.

- Type in
Entrytypeand click on + button

- Create 2 new articles
- Navigate to
Optional fields.

- Delete the value in
EntrytypeatOptional fields - Select second entry and reselect first entry
- The
Articlevalue is back inEntrytypeatOptional fields. However, it is being deleted in bibtex source.
My first guess to this issue is that there is an internal EntryType variable that does not allow user to modify it.
However, I could confirm that this second issue does not relate to #8527.
Would really appreciate if it could be moved as separate issue ticket.
Originally posted by @LIM0000 in https://github.com/JabRef/jabref/issues/8527#issuecomment-1161631732
JabRef 5.7--2022-06-15--cb5fe60 Linux 5.4.0-120-generic amd64 Java 18.0.1 JavaFX unknown
I was able to reproduce by following your steps and creating custom field called entrytype.
I was NOT able to reproduce by creating a custom field called Xyz or Aaaaa.
It did not matter if set as optional field or required field.
So you might be right with
My first guess to this issue is that there is an internal EntryType variable that does not allow user to modify it.
I would suggest to treat this issue with low priority, as this seems to be a severe edge case and a workaround exist:
Workaround:
Simply rename the custom field entrytype to something else. E.g.: CustomEntryType or typeofentry.