Highlighted

Java debugger when adding multiple groups of radio buttons

New Here ,
Nov 03, 2020

Copy link to clipboard

Copied

Hi friends, Getting desperate. Little java experience here. Any help would be appreciated.

Creating a form w/ Yes/No radio buttons that show/hide a group of fields (section1) based on response.

I can get it to work fine using for the first set (radio1) using either of the below for YES buttons (and display.hidden for NO)

this.getField("section1").display = display.visible;     or, 

if (event.target.value != "Off") {
// box is checked
this.getField("section1").display = display.visible ;
}

 

The problem is happening when I add a second group  (radio2) to display/hide the next group of fields (section2). The debugger appears with the below...

 

defaultnd28m5bfwdgw_0-1604441885120.png

 

 

The form needs to assign 'section1' field group to 'radio1' button set

then 'section2' field group to 'radio2' button set

and i can't figure it out. Please help  :-0

nvm, figured it out.just had to post about it ha.

TOPICS
Acrobat SDK and JavaScript, General troubleshooting, How to, PDF forms

Views

17

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Java debugger when adding multiple groups of radio buttons

New Here ,
Nov 03, 2020

Copy link to clipboard

Copied

Hi friends, Getting desperate. Little java experience here. Any help would be appreciated.

Creating a form w/ Yes/No radio buttons that show/hide a group of fields (section1) based on response.

I can get it to work fine using for the first set (radio1) using either of the below for YES buttons (and display.hidden for NO)

this.getField("section1").display = display.visible;     or, 

if (event.target.value != "Off") {
// box is checked
this.getField("section1").display = display.visible ;
}

 

The problem is happening when I add a second group  (radio2) to display/hide the next group of fields (section2). The debugger appears with the below...

 

defaultnd28m5bfwdgw_0-1604441885120.png

 

 

The form needs to assign 'section1' field group to 'radio1' button set

then 'section2' field group to 'radio2' button set

and i can't figure it out. Please help  :-0

nvm, figured it out.just had to post about it ha.

TOPICS
Acrobat SDK and JavaScript, General troubleshooting, How to, PDF forms

Views

18

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Nov 03, 2020 0
New Here ,
Nov 03, 2020

Copy link to clipboard

Copied

nvm, figured it out.just had to post about it ha.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 03, 2020 0