[Libreoffice-bugs] [Bug 143612] New: Option Buttons Do Not Have the Expected "Default Value" and the "Reference value (off)" Option Appears to Serve No Purpose

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Jul 29 19:05:18 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=143612

            Bug ID: 143612
           Summary: Option Buttons Do Not Have the Expected "Default
                    Value" and the "Reference value (off)" Option Appears
                    to Serve No Purpose
           Product: LibreOffice
           Version: 7.1.4.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: westley.h.bennett at gmail.com

Description:
I was trying to create a PDF form using LibreOffice, as is described in this
URL:

https://www.linuxuprising.com/2019/02/how-to-create-fillable-pdf-forms-with.html

And it works great, with one exception - Option Buttons. Now, the Properties
window > Data tab seems to suggest that if left blank, the "Reference values"
will show as "on" and "off" respectively. And the existence of these two fields
in the UI suggests that I should be able to change this behavior by entering a
value in the textboxes, right? And each option button should have two possible
"values", the "on" value and the "off" value, right?

However, there's two problems that I've noticed with this:

1. When the "Reference value (on)" field is left blank, the value that displays
is also blank (a null value). I've confirmed this by investigating the field
using both iText7 programming library, as well as viewing the field's
properties in Adobe Pro DC. Please see the below screenshots for reference
(also note that the second value found in iText7 is "off", which is what I
would expect to see here):

In OpenOffice - https://i.imgur.com/bdCxoHI.png
In Adobe Pro - https://i.imgur.com/W7F3bil.png
In iText7 - https://i.imgur.com/oJJ88oY.png

Thus, it appears that the "Reference value (on)" field does NOT set the value
to "on" by default as the UI suggests when there is no value entered.

However, I should note here that when a value IS set in that field, it appears
to be populating correctly in both Acrobat Pro and iText7, so this appears to
be working as intended.

2. The second issue is that the "Reference value (off)" field is either
non-functional, or doesn't appear to be serving what I believe it's purpose
should be. If I leave the field blank, I'd expect to see "off" as the value of
the radio button. However, Adobe Pro confirms that if you set no value in this
field in the UI, there is no value option that appears at ALL in the list of
acceptable values for this option button. However, iText7 strangely lists the
value as "off", no matter WHAT you put into this field, thus suggesting that
this field right now does absolutely nothing. Please see the screenshots below:

In OpenOffice - https://i.imgur.com/cFGfXhV.png
In Adobe Pro - https://i.imgur.com/PfsIIHL.png
In iText7 - https://i.imgur.com/bpPrxbU.png

It's my opinion that this field should have both "on" and "off" as the default
values for the option button being pressed or not pressed, AND that for both
the on and off state, the user be able to set explicit values for each state.

Steps to Reproduce:
For the two issues:

Issue 1 (no default "on" value)
1. Add an option button onto the document
2. Ensure that the "Reference value (on)" value is blank
3. Export the document to PDF, then check the value in both Acrobat Pro and
iText7

Issue 2 (the "Reference value(off)" textbox having no purpose)
1. Add an option button onto the document
2. Try to set a value for the "off" reference value
3. Export the document as a PDF, then check the value in both Acrobat Pro and
iText7

Actual Results:
Issue 1 - The value will be "blank"

Issue 2 - The value will always be "off"

Expected Results:
Issue 1 - The value will be "on" by default, as the UI suggests

Issue 2 - The value will reflect whatever you placed into the "Reference value
(off)" field


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.1.5.2 (x64) / LibreOffice Community
Build ID: 85f04e9f809797b8199d13c421bd8a2b025d52b5
CPU threads: 8; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210729/f82a98c3/attachment.htm>


More information about the Libreoffice-bugs mailing list