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

Learn more

View all

Sign in to view all badges

SOLVED

Visibility Expression

famruch
Level 2
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
Sakshi1
Correct answer by
Level 3
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
Sakshi1
Correct answer by
Level 3
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

famruch
Level 2
Level 2

Thanks Sakshi,

This works for me.

Much appreciated,

Afam