Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
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
Former Community Member

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
Former Community Member

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

The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----