Commit 05eb4a1
committed
Allow arbitrary ON values for CheckBoxes
We previously insisted that the ON-values for CheckBoxes are defined as "Yes" in the PDF (the published recommended value).
This fix introduces lifts this restriction and supports arbitrary values as ON for check boxes.
So a check box turns to OFF if setting its field value to `False` or "Off".
It is set to ON if the field value is set to any of 'True`, "Yes" or the respective value coded in the PDF.
When checking a check box's value, the return values invariably are either "Off" or the ON-value in the PDF. Which value this is, can be checked via method `on_state()`.1 parent 63a3a08 commit 05eb4a1
3 files changed
+61
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7269 | 7269 | | |
7270 | 7270 | | |
7271 | 7271 | | |
7272 | | - | |
7273 | | - | |
7274 | 7272 | | |
7275 | 7273 | | |
7276 | 7274 | | |
| |||
17681 | 17679 | | |
17682 | 17680 | | |
17683 | 17681 | | |
17684 | | - | |
17685 | | - | |
17686 | | - | |
17687 | | - | |
| 17682 | + | |
| 17683 | + | |
| 17684 | + | |
| 17685 | + | |
17688 | 17686 | | |
17689 | | - | |
17690 | | - | |
| 17687 | + | |
| 17688 | + | |
17691 | 17689 | | |
17692 | 17690 | | |
17693 | 17691 | | |
| |||
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
379 | 380 | | |
380 | 381 | | |
381 | 382 | | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
0 commit comments