Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Visibility Expression

Avatar

Level 2

Hi Guys,

Please can someone tell me how to code this in the visibility expression of a text field 

radiobutton.value=="1";radiobutton.value=="2";

When I do it this way it only works (makes the textfield visible) when radiobutton.value=="1" doesn't work for radiobutton.value=="2"

Thanks,

Afam

1 Accepted Solution

Avatar

Correct answer by
Level 3

The expression should result in a boolean value. So the expression to get desired result would be:

radiobutton.value=="1" || radiobutton.value=="2"

View solution in original post

2 Replies

Avatar

Correct answer by
Level 3

The expression should result in a boolean value. So the expression to get desired result would be:

radiobutton.value=="1" || radiobutton.value=="2"

Avatar

Level 2

Thanks Sakshi,

This works for me.

Much appreciated,

Afam