Expand my Community achievements bar.

Checkbox mutually exclusive within separate subforms

Avatar

Level 1

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";

}

0 Replies