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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Hidden, Visible and back to Hidden using a radio button

Avatar

Level 2

Ok this might be really simple for someone to answer.

I have a radio button I'm using to toggle between two list boxes with multiple lines of text (hidden and then visible). Here's the problem, when I toggle the radio button back and forth I have both list boxes displaying thier notes at the same time. I would like to have the radio button display one messages at a time when you toggle between them. Here is my script.

Radio Button named Violation:

form1.#pageSet[0].Page1.#subform[0].action[1].Violation::click - (JavaScript, client)

if (this.rawValue == null) {

     Notes.presence = "hidden";

}

else {

     Notes.presence = "visible";

}

Radio Button named Suspension:

form1.#pageSet[0].Page1.#subform[0].action[1].Suspension::click - (JavaScript, client)

if (this.rawValue == null) {

     Notes2.presence = "hidden";

}

else {

     Notes2.presence = "visible";

}

1 Accepted Solution

Avatar

Correct answer by
Level 10

Notes and Notes2 are list boxes. Violation and Suspension are radio buttons. Is that correct? If so, are Violation and Suspension in an exclusion group?

Is this the requirement, Violation should display Notes and hide Notes2 and Suspension should hide Notes and display Notes2?

Steve

View solution in original post

4 Replies

Avatar

Correct answer by
Level 10

Notes and Notes2 are list boxes. Violation and Suspension are radio buttons. Is that correct? If so, are Violation and Suspension in an exclusion group?

Is this the requirement, Violation should display Notes and hide Notes2 and Suspension should hide Notes and display Notes2?

Steve

Avatar

Level 2

What do you mean exclusive group?

The second question,"Is this the requirement, Violation should display Notes and hide Notes2 and Suspension should hide Notes and display Notes2?"

Yes!!!