Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Checkbox mutually exclusive within separate subforms

Avatar

Avatar
Level 1
Compost12345
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile

Avatar
Level 1
Compost12345
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile
Compost12345
Level 1

13-11-2019

Hello All

I have an unusual question and have been working on this for a week.

I am creating a form in Adobe Livecycle E2 with the following hierarchy.

MainSubform

     Subform - Question1

                        Subform - YES

                                   Subform - YesImplemented - checkbox

                                               Subform with textfields that appear when selected and collapses when not selected

                          Subform - NO

                                  NoImplemented - checkbox

                                               Subform with additional checkboxes that appear when selected and collapses when not selected

                          Subform - DNK (Do Not Know)

                                  DNKImplemented - checkbox

                                               Subform with additional checkboxes that appear when selected and collapses when not selected

What I am trying to do is to only allow one of the bolded forms to be selected at a time. Any help would be greatly appreciated!

Here is the code I have working so far.

form1.Main1.DocTitle::initialize - (JavaScript, client)

this.rawValue=event.target.documentFileName.split(".") [0];

form1.Main1.Q1.DNK.DNKImplemented::change - (JavaScript, client)

if (this.rawValue == "1") {

  this.resolveNode("YES.YesImplemented").rawValue = "0";

  this.resolveNode("NO.NoImplemented").rawValue = "0";

}

//-

if (this.rawValue == "1") {

  this.resolveNode("DNKOptions").presence = "visible";

} else {

this.resolveNode ("DNKOptions").presence = "hidden";

}

form1.Main1.Q1.NO.NoImplemented::change - (JavaScript, client)

if (this.rawValue == "1") {

  this.resolveNode("YES.YesImplemented").rawValue = "0";

  this.resolveNode("DNK.DNKImplemented").rawValue = "0";

}

//-

if (this.rawValue == "1") {

  this.resolveNode("NoOptions").presence = "visible";

} else {

this.resolveNode ("NoOptions").presence = "hidden";

}

form1.Main1.Q1.YES.YesImplemented::change - (JavaScript, client)

if (this.rawValue == "1") {

  this.resolveNode("NO.NoImplemented").rawValue = "0";

  this.resolveNode("DNK.DNKImplemented").rawValue = "0";

}

//-

if (this.rawValue == "1") {

  this.resolveNode("YesOptions").presence = "visible";

} else {

this.resolveNode ("YesOptions").presence = "hidden";

}

Accepted Solutions (0)

Answers (0)