Have a look at https://bugs.documentfoundation.org/attachment.cgi?id=187049 There are two fields with user defined data types. Take the first field an let you show the properties for this field. Design mode has to be set to 'on' in the toolbar "form design". Try to delete the entry for "Length (at most)", because it isn't needed. It is impossible to delete the entry. '5' will always reappear. You could set it to '4' (which does conflict with the other entries …). But you couldn't set it blank. If you try to set it '0' the '0' will disappear and '5' will reappear. Only possibility I found: Delete the user defined data type and create a new one.
Repro also in 5.2, 4.1. Arch Linux 64-bit, X11 Version: 7.6.0.0.alpha1+ (X86_64) / LibreOffice Community Build ID: 39b25518ce96a50f54459f681edcb95057507251 CPU threads: 8; OS: Linux 6.3; UI render: default; VCL: kf5 (cairo+xcb) Locale: fi-FI (fi_FI.UTF-8); UI: en-US Calc: threaded Built on 12 May 2023
I gave a try with https://gerrit.libreoffice.org/c/core/+/151740. To remove the information with the patch applied, you must select 0 then when clicking on another field, the "0" disappear and let the previous field empty. I would have preferred to be able to remove the content directly but LO retrieves "0" in a way. I must recognize that changing something in extensions is a bit like playing the sorcerer's apprentice for me, hope it won't back fire... Caolán: any thoughts here? I mean, even in forms part of the quoted patch, I wonder if there won't be any wrong side effects somewhere.
Julien Nabet committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/0138745f0206f348644fd6d47c7316c8190d711b tdf#155123: XML Form: Deleting parts of user defined data type impossible 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.
Robert: I finally pushed this one so you can give it a try. If you see some regressions or weird things which may be related to this, don't hesitate to tell. Perhaps we'll have to revert this.
Let's put this one to fixed. Robert: don't hesitate to reopen this tracker if you still reproduce this.