Expand my Community achievements bar.

Display text when clicking radio buttons

Avatar

Level 1

Hello All,

I am working on a form where when you click a radio button it generates text beneath the radio buttons with details about your selection. I got it working no problem, but when I make a second line of the same thing, only one of the two will work on the form. The first line you choose the radio button on will display the text and that line will work but the second line I click wont work. It doesn't matter which is clicked first or second.

I am running the following javascript on the radio button group, under the click action:

if (this.rawValue == 1)

{

  AccountabilityText.TextNovice.presence = "visible";

} else

{

  AccountabilityText.TextNovice.presence = "hidden";

}

if (this.rawValue == 2)

{

  AccountabilityText.TextDeveloping.presence = "visible";

} else

{

  AccountabilityText.TextDeveloping.presence = "hidden";

}

if (this.rawValue == 3)

{

  AccountabilityText.TextCompetent.presence = "visible";

} else

{

  AccountabilityText.TextCompetent.presence = "hidden";

}

if (this.rawValue == 4)

{

  AccountabilityText.TextProficient.presence = "visible";

} else

{

  AccountabilityText.TextProficient.presence = "hidden";

}

if (this.rawValue == 5)

{

  AccountabilityText.TextExpert.presence = "visible";

} else

{

  AccountabilityText.TextExpert.presence = "hidden";

}

Any help would be appreciated.

The file is in an open google drive folder here:

Employee_Performance_Review v2.pdf - Google Drive

0 Replies