Yes, the above understanding is correct.
 Is there any possible solution to this problem?

Thanks
Damaji


On Thu, Aug 18, 2022 at 1:20 PM sahy...@fileaffairs.de <
sahy...@fileaffairs.de> wrote:

> if I understood correctly the request was to be able to set the last
> checkbox labled Indeterminate / Intersex / Unspecified with either one
> of the three values (unspecified works) and also capture the value.
> e.g. when setting 'indeterminate' as the value the checkbox should be
> checked and also have the value 'indeterminate'.
>
> That's not possible. It can only be set using 'unspecified' and then
> have the value 'unspecified' as a single checkbox can not have multiple
> ON values.
>
> BR
> Maruan
>
>
>
> Am Donnerstag, dem 18.08.2022 um 09:29 +0200 schrieb Tilman Hausherr:
> > I tried it in firefox... these are three checkboxes that behave like
> > a
> > radio button set.
> >
> > Then I looked at it with PDFDebugger, there are no radio button
> > flags.
> > There is no javascript. Could this be some default behavior when
> > checkboxes have the same name? You possibly mentioned something a few
> > days / weeks ago.
> >
> > Tilman
> >
> > Am 18.08.2022 um 07:18 schrieb sahy...@fileaffairs.de:
> > > Hello Damaji,
> > >
> > > the PDF supports my assumption. There is a single checkbox
> > > representing
> > > eiher one of three values for the checked state. And that's not
> > > possible with a checkbox. It can only hold one value for the
> > > unchecked
> > > and one value for the checked state.
> > >
> > > So if you need to be able to differentiate between the additional
> > > genders you need to have
> > > - additional checkboxes or
> > > - a dropdown or
> > > - store the value somewehere else in the PDF in addition to
> > > checking
> > > the box (e.g. by adding a hidden field or storing the information
> > > in
> > > the metadata of the PDF).
> > >
> > > The last workaround obviously will not work if one uses the PDF
> > > interactively which limits the use of the PDF.
> > >
> > > BR
> > > Maruan
> > >
> > > Am Donnerstag, dem 18.08.2022 um 09:29 +0530 schrieb Damaji
> > > Kalunge:
> > > > Hi Team,
> > > >   Please refer to the link PDF [
> > > >
> https://drive.google.com/file/d/17XoTxgGSrn9-XMpZsSqhNanzTW6UBCmg/view?usp=sharing
> > > > ].
> > > > Thanks
> > > > Damaji.
> > > >
> > > > On Wed, Aug 17, 2022 at 9:46 PM Gilad Denneboom
> > > > <gilad.denneb...@gmail.com>
> > > > wrote:
> > > >
> > > > > You can't attach files directly here. Upload it to a file-
> > > > > sharing
> > > > > website
> > > > > (like Google Drive) and post a link to it.
> > > > >
> > > > > On Wed, Aug 17, 2022 at 10:11 AM Damaji Kalunge
> > > > > <dam...@technogise.com>
> > > > > wrote:
> > > > >
> > > > > > Hi Team,
> > > > > >
> > > > > > I have attached the PDF itself.
> > > > > >
> > > > > >   Requirement is tick the sex checkbox based on its possible
> > > > > > values like
> > > > > *male,
> > > > > > female,  **unspecified*, "i*ndeterminate"  and  "i**ntersex
> > > > > > *" .
> > > > > >     Facing issue for "i*ndeterminate"  and  "i**ntersex *"
> > > > > > with
> > > > > > below
> > > > > > code.
> > > > > >
> > > > > > COSDictionary
> > > > > cosDictionary3=pDAcroForm.getField("ap.sex").getCOSObject();
> > > > > > cosDictionary3.setString(COSName.V ,"unspecified");
> > > > > >
> > > > > > Thanks
> > > > > > Damaji.
> > > > > >
> > > > > > On Wed, Aug 17, 2022 at 1:10 PM sahy...@fileaffairs.de <
> > > > > > sahy...@fileaffairs.de> wrote:
> > > > > >
> > > > > > > Hi Damaji,
> > > > > > >
> > > > > > > the attachment didn't make it through - can you upload that
> > > > > > > somewhere
> > > > > > > or even better the PDF in question?
> > > > > > >
> > > > > > > BR
> > > > > > > Maruan
> > > > > > >
> > > > > > > Am Mittwoch, dem 17.08.2022 um 13:03 +0530 schrieb Damaji
> > > > > > > Kalunge:
> > > > > > > > HI Team,
> > > > > > > >
> > > > > > > >    There is confusion around how CheckboxPDF Field is in
> > > > > > > > PDF.
> > > > > > > > I have
> > > > > > > > attached screenshot  . Please refer to it.
> > > > > > > >    This is group checkbox field with one PDF Field name
> > > > > > > > "app.sex".
> > > > > > > >    Requirement is to set the each checkbox based on its
> > > > > > > > value.
> > > > > > > >
> > > > > > > >   Chosen  below  way  to fill PDF because it is
> > > > > > > > encrypted.
> > > > > > > >    Below code is working fine for male, female and
> > > > > > > > unspecified
> > > > > > > > COSDictionary
> > > > > > > > cosDictionary3=pDAcroForm.getField("ap.sex").getCOSObject
> > > > > > > > ();
> > > > > > > > cosDictionary3.setString(COSName.V ,"unspecified");
> > > > > > > >    but it is not working for "indeterminate"  and
> > > > > > > > "intersex
> > > > > > > > "  means
> > > > > > > > the checkbox are ticked.
> > > > > > > >
> > > > > > > >   Could you please help out ?
> > > > > > > >
> > > > > > > >
> > > > > > > > Thanks
> > > > > > > > Damaji.
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > On Wed, Aug 17, 2022 at 12:40 PM sahy...@fileaffairs.de
> > > > > > > > <sahy...@fileaffairs.de> wrote:
> > > > > > > > > reading a little further (and not being able to see the
> > > > > > > > > image) I'm
> > > > > > > > > guessing that there is a single checkbox which you can
> > > > > > > > > tick
> > > > > > > > > if the
> > > > > > > > > person has one of the three potential states. But
> > > > > > > > > that's
> > > > > > > > > not
> > > > > > > > > possible
> > > > > > > > > to as a checkbox can only hold a value for unchecked
> > > > > > > > > (default OFF)
> > > > > > > > > and
> > > > > > > > > one for checked. So checking by providing one of the
> > > > > > > > > three
> > > > > > > > > values
> > > > > > > > > and
> > > > > > > > > also capturing that is not possible.
> > > > > > > > >
> > > > > > > > > You should use a List field in that case or a group of
> > > > > > > > > radio
> > > > > > > > > buttons or
> > > > > > > > > have a hidden field where you in addition to checking
> > > > > > > > > the
> > > > > > > > > checkbox
> > > > > > > > > hold
> > > > > > > > > the value of what checked means.
> > > > > > > > >
> > > > > > > > > BR
> > > > > > > > > Maruan
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Am Mittwoch, dem 17.08.2022 um 08:54 +0200 schrieb
> > > > > > > > > sahy...@fileaffairs.de:
> > > > > > > > > > In addition,
> > > > > > > > > >
> > > > > > > > > > are you sure that Indeterminate or Intersex are the
> > > > > > > > > > potential
> > > > > > > > > > values
> > > > > > > > > > defined for the checkbox(es). The visible text is not
> > > > > > > > > > what
> > > > > > > > > > determines
> > > > > > > > > > the potential values fo rthe checked/unchecked state.
> > > > > > > > > > Also it's
> > > > > > > > > > unusual
> > > > > > > > > > that a checkbox has 3 potenmtial values as it's
> > > > > > > > > > either
> > > > > > > > > > checked or
> > > > > > > > > > unchecked.
> > > > > > > > > >
> > > > > > > > > > If you upload the the PDF to a shared location I can
> > > > > > > > > > take
> > > > > > > > > > a look.
> > > > > > > > > >
> > > > > > > > > > BR
> > > > > > > > > > Maruan
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > Am Mittwoch, dem 17.08.2022 um 08:41 +0200 schrieb
> > > > > > > > > > Tilman
> > > > > > > > > > Hausherr:
> > > > > > > > > > > Hi,
> > > > > > > > > > >
> > > > > > > > > > > If this is really a PDCheckBox then call check() or
> > > > > > > > > > > uncheck().
> > > > > > > > > > > I
> > > > > > > > > > > can't
> > > > > > > > > > > see the image, maybe this was an attachment.
> > > > > > > > > > >
> > > > > > > > > > > Tilman
> > > > > > > > > > >
> > > > > > > > > > > Am 17.08.2022 um 08:26 schrieb Damaji Kalunge:
> > > > > > > > > > > > Hi Team,
> > > > > > > > > > > >
> > > > > > > > > > > >    In the editable PDF we have a checkbox as
> > > > > > > > > > > > shown
> > > > > > > > > > > > below.
> > > > > > > > > > > > image.png
> > > > > > > > > > > >
> > > > > > > > > > > > *Indeterminate / Intersex / Unspecified []*
> > > > > > > > > > > > *
> > > > > > > > > > > > *
> > > > > > > > > > > >     We are able to check the above checkbox using
> > > > > > > > > > > > below code
> > > > > > > > > > > > and
> > > > > > > > > > > > only
> > > > > > > > > > > > with value "*unspecified" .
> > > > > > > > > > > > * Then only the checkbox is ticked in the filled
> > > > > > > > > > > > PDF.
> > > > > > > > > > > > COSDictionary
> > > > > > > > > > > > cosDictionary3=pDAcroForm.getField("ap.sex").getC
> > > > > > > > > > > > OSOb
> > > > > > > > > > > > ject();
> > > > > > > > > > > > cosDictionary3.setString(COSName.V
> > > > > > > > > > > > ,"unspecified");
> > > > > > > > > > > > **
> > > > > > > > > > > >    We have requirement to set the checkbox value
> > > > > > > > > > > > *Indeterminate or
> > > > > > > > > > > > **Intersex * then by with value
> > > > > > > > > > > > "i*ndeterminate"  or
> > > > > > > > > > > > "i**ntersex
> > > > > > > > > > > > *"
> > > > > > > > > > > > does not ticked the checkbox in the filled PDF.
> > > > > > > > > > > >
> > > > > > > > > > > >   I am afraid if we set  the last value to PDF
> > > > > > > > > > > > Checkbox then
> > > > > > > > > > > > downstream
> > > > > > > > > > > > processing may have an impact which is not in our
> > > > > > > > > > > > control
> > > > > > > > > > > > to fix
> > > > > > > > > > > > or
> > > > > > > > > > > > analyze.
> > > > > > > > > > > >
> > > > > > > > > > > > Could you please help out in this scenario ?
> > > > > > > > > > > >
> > > > > > > > > > > > Thanks
> > > > > > > > > > > > Damaji.
> > > > > > > > > > > >
> > > > > > > > > > > > *
> > > > > > > > > > > > *
> > > > > > > > >
> > > > > > > > > -------------------------------------------------------
> > > > > > > > > ----
> > > > > > > > > --------
> > > > > > > > > --
> > > > > > > > > To unsubscribe, e-mail:
> > > > > > > > > users-unsubscr...@pdfbox.apache.org
> > > > > > > > > For additional commands, e-mail:
> > > > > > > > > users-h...@pdfbox.apache.org
> > > > > > > --
> > > > > > > --
> > > > > > > Maruan Sahyoun
> > > > > > >
> > > > > > > FileAffairs GmbH
> > > > > > > Josef-Schappe-Straße 21
> > > > > > > 40882 Ratingen
> > > > > > >
> > > > > > > Tel: +49 (2102) 89497 88
> > > > > > > Fax: +49 (2102) 89497 91
> > > > > > > sahy...@fileaffairs.de
> > > > > > > www.fileaffairs.de
> > > > > > >
> > > > > > > Geschäftsführer: Maruan Sahyoun
> > > > > > > Handelsregister: AG Düsseldorf, HRB 53837
> > > > > > > UST.-ID: DE248275827
> > > > > > >
> > > > > > > -----------------------------------------------------------
> > > > > > > ----
> > > > > > > ------
> > > > > > > To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
> > > > > > > For additional commands, e-mail:
> > > > > > > users-h...@pdfbox.apache.org
> > > > > > >
> > > > > > >
> > > > > > -------------------------------------------------------------
> > > > > > ----
> > > > > > ----
> > > > > > To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
> > > > > > For additional commands, e-mail: users-h...@pdfbox.apache.org
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
> > For additional commands, e-mail: users-h...@pdfbox.apache.org
> >
>
> --
> --
> Maruan Sahyoun
>
> FileAffairs GmbH
> Josef-Schappe-Straße 21
> 40882 Ratingen
>
> Tel: +49 (2102) 89497 88
> Fax: +49 (2102) 89497 91
> sahy...@fileaffairs.de
> www.fileaffairs.de
>
> Geschäftsführer: Maruan Sahyoun
> Handelsregister: AG Düsseldorf, HRB 53837
> UST.-ID: DE248275827
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
> For additional commands, e-mail: users-h...@pdfbox.apache.org
>
>

Reply via email to