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)
7.1.3.2 release
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: 2021-08-29 11:11 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:
Regression By:


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