With fix in Bug 43569, "fileopen2 and "save as ODT" of conditional fields in attachment 56010 [details] are fixed in 6.1+. This bug is to export ConditionalText field to DOC/DOCX.
Export of conditional text to DOC and DOCX still doesn't work in the current daily build: Version: 7.3.0.0.alpha0+ / LibreOffice Community Build ID: e3086b58eb5427d520b86c185f9d911bb6f7a3a0 CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-06-21_15:37:11 Calc: threaded In my tests: - in the DOC, the variable it depends on still exists, but does not display its current value. Conditional text is entirely lost. - in the DOCX, the variable it depends on works as expected, but the conditional text only displays its last value when the file was saved, and modifying the document in any way makes the value disappear. Editing the conditional text field shows that there is no condition defined, and no values for "Then" or "Else.
Created attachment 184716 [details] tdf114537_conditionalText.odt: minimal example of true and false conditions It is worth noting that "1.doc" does not import properly. The true/false text is considered part of the conditional statement. So I have included an ODT file to use for exporting. NOTE that import of DOCX doesn't work, so any testing needs to be done in MS Word. Testing LO 7.6 master. No field is exported at all in DOC format. It is reasonably well exported to DOCX format, except that it has too many quotation marks and thus fails.
The DOCX export was added in LO 7.1 with commit 5d839ff8a81ade6453a239a258b2a2571e32001e Author: Miklos Vajna on Fri Nov 13 16:26:43 2020 +0100 DOCX export: handle conditional fields At least the subset where the condition syntax matches between Writer and Word.
Justin Luth committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/98550980e414ca6d611e6c3779eed2e5e66f5641 tdf#114537 docx export: export conditional text in quotes It will be available in 7.6.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Justin Luth committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/29f23c0e71437303982a094040373b509afc7010 tdf#114537 docx export: export conditional text with " as ' It will be available in 7.6.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Justin Luth committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/f610082534745e88fd1fbfd8059948c38fb88fb6 tdf#114537 doc import: trim switches before evaluating FIELD_IF It will be available in 7.6.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Justin Luth committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/c2bcaaeab0787c6658eeda0f570bb6aa59d4d64e tdf#114537 doc/rtf export: move DOCX impl so all formats use it It will be available in 7.6.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.