ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* checkbox in fields show the word yes
@ 2020-11-17 12:50 Jan U. Hasecke
  2020-12-11  7:46 ` Jan U. Hasecke
  0 siblings, 1 reply; 6+ messages in thread
From: Jan U. Hasecke @ 2020-11-17 12:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi all,

with this example I get a checkbox that does not work; in my real world
document it works, I can't say why. But this minimal example shows the
problem I have in my real document.


\usemodule[fields]
\setupinteraction [state=start]

\setupfield[cbox][width=1em,height=1em,option=printable,frame=on,offset=0.5mm,frameoffset=1mm,type=radio,color=black]
\definefield[test][check][cbox][yes][no]

\starttext
\field[test] \space Do you see the word »yes«?
\stoptext

Unfortunately in Firefox and some other PDF Viewer there is the word
"yes" written in the checkbox.

This makes the form useless as people think the given option is set to
yes by default.

Can I avoid this somehow?

TIA juh
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: checkbox in fields show the word yes
  2020-11-17 12:50 checkbox in fields show the word yes Jan U. Hasecke
@ 2020-12-11  7:46 ` Jan U. Hasecke
  2020-12-11  8:21   ` Floris van Manen
  0 siblings, 1 reply; 6+ messages in thread
From: Jan U. Hasecke @ 2020-12-11  7:46 UTC (permalink / raw)
  To: ntg-context

Dear all,

as nobody answered I would like too repeat my question.

If you open the MWE in Firefox, you see the word "yes" written in the
checkbox. Is there a way to avoid this?


Thanks a lot for your help.
juh

Am 17.11.20 um 13:50 schrieb Jan U. Hasecke:
> Hi all,
> 
> with this example I get a checkbox that does not work; in my real world
> document it works, I can't say why. But this minimal example shows the
> problem I have in my real document.
> 
> 
> \usemodule[fields]
> \setupinteraction [state=start]
> 
> \setupfield[cbox][width=1em,height=1em,option=printable,frame=on,offset=0.5mm,frameoffset=1mm,type=radio,color=black]
> \definefield[test][check][cbox][yes][no]
> 
> \starttext
> \field[test] \space Do you see the word »yes«?
> \stoptext
> 
> Unfortunately in Firefox and some other PDF Viewer there is the word
> "yes" written in the checkbox.
> 
> This makes the form useless as people think the given option is set to
> yes by default.
> 
> Can I avoid this somehow?
> 

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: checkbox in fields show the word yes
  2020-12-11  7:46 ` Jan U. Hasecke
@ 2020-12-11  8:21   ` Floris van Manen
  2020-12-11 17:33     ` Bruce Horrocks
  0 siblings, 1 reply; 6+ messages in thread
From: Floris van Manen @ 2020-12-11  8:21 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 124 bytes --]



On 11/12/2020 08:46, Jan U. Hasecke wrote:
> as nobody answered I would like too repeat my question.

This is what I see


[-- Attachment #2: Screenshot_20201211_092027.png --]
[-- Type: image/png, Size: 12466 bytes --]

[-- Attachment #3: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: checkbox in fields show the word yes
  2020-12-11  8:21   ` Floris van Manen
@ 2020-12-11 17:33     ` Bruce Horrocks
  0 siblings, 0 replies; 6+ messages in thread
From: Bruce Horrocks @ 2020-12-11 17:33 UTC (permalink / raw)
  To: ntg-context



> On 11 Dec 2020, at 08:21, Floris van Manen <vm@klankschap.nl> wrote:
> 
> 
> 
> On 11/12/2020 08:46, Jan U. Hasecke wrote:
>> as nobody answered I would like too repeat my question.
> 
> This is what I see


On a Mac running BigSur...
1) using the TeXShop built-in PDF viewer I see the word "yes" inside the box
2) in the 'Preview' app I see "yes" in the box
3) using Adobe Acrobat Reader DC I get:
  a) Initially a blank / grey box
  b) Hovering the mouse over the grey bit displays "yes" and the cursor changes from I-beam to hand
  c) Single clicking displays the word "yes"
  d) Move focus to another app and the word "yes" is replaced with a tick mark in the box
  e) Move focus back to Acrobat, hover over the box and the tick mark changes to "yes"
  f) Click the tick and the box changes to "yes"
  g) Move focus to another app and the box changes to blank i.e. unticked

I've no idea whatsoever what to do about it or suggest which is why I didn't reply before.

--
Bruce Horrocks
Hampshire, UK

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: checkbox in fields show the word yes
  2020-12-11 17:13 Andres Conrado Montoya
@ 2020-12-11 17:28 ` Hans Hagen
  0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2020-12-11 17:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Andres Conrado Montoya

On 12/11/2020 6:13 PM, Andres Conrado Montoya wrote:
> Firefox doesn't show the "yes", nor Acrobat X, but SumatraPDF does. I 
> modified your definition as:
> 
> \definefield[test][check][cbox][][]
> 
> And now the "yes" doesn't appear. However, I don't know how this affects 
> the functionality of the form.
these symbols (esp how deafults are handles) has alwaye been a bit of a 
mess in acrobat (read: different per version) and relates to appearance 
streams and such (when a form is made in acrobat these streams get 
added, it could even be some dingbat kicking in or being vectorized or 
... seen all kind of variants) ... officially a rendering should listen 
to some keys that relate to it but this is not always the case

(part of the problem is, i think, that esp for check fields a bugs or 
behaviour  has become a feature which makes it kin dof inconsisten twith 
the rest of the widgets .. it's even worse when one uses parent / child 
across pages ... it hasn;t helped that hardly any viewer supported it 
which in turn means no feedback)

(in lmtx iu could probably generate appearance streams but i'll only do 
that when i have an application for these widgets so that i can test it)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: checkbox in fields show the word yes
@ 2020-12-11 17:13 Andres Conrado Montoya
  2020-12-11 17:28 ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Andres Conrado Montoya @ 2020-12-11 17:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1089 bytes --]

Firefox doesn't show the "yes", nor Acrobat X, but SumatraPDF does. I
modified your definition as:

\definefield[test][check][cbox][][]

And now the "yes" doesn't appear. However, I don't know how this affects
the functionality of the form.

-- 
Andrés Conrado Montoya
Andi Kú
andresconrado@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org
----------------------------------------
Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.
----------------------------------------

“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell

[-- Attachment #1.2: Type: text/html, Size: 1621 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-12-11 17:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-17 12:50 checkbox in fields show the word yes Jan U. Hasecke
2020-12-11  7:46 ` Jan U. Hasecke
2020-12-11  8:21   ` Floris van Manen
2020-12-11 17:33     ` Bruce Horrocks
2020-12-11 17:13 Andres Conrado Montoya
2020-12-11 17:28 ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).