mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Interactive forms: values for radio buttons (issue #6995)
This commit is contained in:
parent
1a2f3f95ca
commit
4e181e59ef
1 changed files with 5 additions and 7 deletions
|
@ -786,14 +786,12 @@ var ButtonWidgetAnnotation = (function ButtonWidgetAnnotationClosure() {
|
|||
// The parent field's `V` entry holds a `Name` object with the appearance
|
||||
// state of whichever child field is currently in the "on" state.
|
||||
var fieldParent = params.dict.get('Parent');
|
||||
if (!isDict(fieldParent) || !fieldParent.has('V')) {
|
||||
return;
|
||||
if (isDict(fieldParent) && fieldParent.has('V')) {
|
||||
var fieldParentValue = fieldParent.get('V');
|
||||
if (isName(fieldParentValue)) {
|
||||
this.data.fieldValue = fieldParentValue.name;
|
||||
}
|
||||
}
|
||||
var fieldParentValue = fieldParent.get('V');
|
||||
if (!isName(fieldParentValue)) {
|
||||
return;
|
||||
}
|
||||
this.data.fieldValue = fieldParentValue.name;
|
||||
|
||||
// The button's value corresponds to its appearance state.
|
||||
var appearanceStates = params.dict.get('AP');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue