Bug 143900 - File selection control cannot be explicitly associated with a label element
Summary: File selection control cannot be explicitly associated with a label element
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.3 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Form-Controls
  Show dependency treegraph
 
Reported: 2021-08-16 14:03 UTC by Christophe Strobbe
Modified: 2023-10-09 19:39 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christophe Strobbe 2021-08-16 14:03:45 UTC
After inserting a File Selection control into a Writer form, it is not possible to explicitly associate the control with a previously created Label element.

Steps to Reproduce:
1. In a Writer document, enable Design Mode for forms and insert a Label element; in the Label's properties, fill in the "Label" field, e.g. "Upload a file that illustrates the issue in your bug report".
2. Insert a File Selection field.
3. Open the File Selection field's properties dialog to add a label.

Actual Results:
The dialog's "General" tab does not contain the field "Label Field" that allows you to select a previously defined Label element. (And in the resulting XML code, there is consequently no explicit association between label and form field.)

Expected Results:
The dialog's "General" should contain the field "Label Field" that allows you to select a previously defined Label element. This would be consistent with other fields, such as the Image Control field (which is similar in the sense that it also allows you to browse to a file) and other fields, such as a List Box, a Text Box, a Check Box and a Date Field.

Note that everything is in place in the XML code to allow an explicit association between label and form field: the <form:fixed-text> element (for the label) has a form:label attribute, and the <form:file> element has both an xml:id and a form:id attibute that can be referenced by a label. What is missing is the form:for attribute on the <form:fixed-text> element, which would point to the form field's ID to make the connection explicit.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.1.3.2 / LibreOffice Community
Build ID: 10(Build:2)
CPU threads: 8; OS: Linux 5.5; UI render: default; VCL: kf5
Locale: en-GB (en_GB.utf8); UI: en-GB
Calc: threaded
Comment 1 Ezinne 2021-08-29 11:11:42 UTC
Reproducible in:

Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: 7c1bad415ae48635dc67041c413bb7b76a530c22
CPU threads: 8; OS: Linux 5.8; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-07-05_06:55:03
Calc: threaded
Comment 2 QA Administrators 2023-08-30 03:05:55 UTC Comment hidden (obsolete)
Comment 3 Kira Tubo 2023-10-09 19:39:11 UTC
Reproduced in:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 36163d269bd8f77a86605e4c5ff5adce17b4c66c
CPU threads: 6; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

Version: 6.3.0.0.alpha1 (x64)
Build ID: 547edd20e527fb02900f6174973770d26306e2e7
CPU threads: 6; OS: Windows 10.0; UI render: GL; VCL: win; 
Locale: en-US (en_US); UI-Language: en-US
Calc: CL