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

Visibility Logic

Avatar

Avatar
Validate 1
Level 1
famruch
Level 1

Likes

2 likes

Total Posts

24 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
famruch
Level 1

Likes

2 likes

Total Posts

24 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
famruch
Level 1

15-10-2015

Hi Guys,

I have got a yes/no radio button and a textfield. I want to make the textfield visible/hidden based on whether the user selects yes or no. In the Visibility expression of the textfield, I can enter radiobutton.value == "1" to make it only visible if the user selects the yes option. The problem with this method is that in the initial layout of the form the textfield is hidden and then becomes visible when the user selects yes.

Please does anyone know how I can have the textfield visible to start off with and then when the user selects no, the textfield is hidden?

Thanks very much,

Afam

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 1
Level 2
rishim22446870
Level 2

Likes

2 likes

Total Posts

32 posts

Correct Reply

12 solutions
Top badges earned
Boost 1
Affirm 5
Affirm 3
Affirm 10
Affirm 1
View profile

Avatar
Boost 1
Level 2
rishim22446870
Level 2

Likes

2 likes

Total Posts

32 posts

Correct Reply

12 solutions
Top badges earned
Boost 1
Affirm 5
Affirm 3
Affirm 10
Affirm 1
View profile
rishim22446870
Level 2

15-10-2015

There could be three solutions to your problem:

a) Suggested by mandeep.

b) You can use this visible expression in text field, (radiobutton.value === null ? true : (radibutton.value == "1")) . Assuming you have no default value set.

c) Set a default value for the radio button.

Answers (3)

Answers (3)

Avatar

Avatar
Validate 1
Level 1
famruch
Level 1

Likes

2 likes

Total Posts

24 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
famruch
Level 1

Likes

2 likes

Total Posts

24 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
famruch
Level 1

15-10-2015

Thanks Rishi,

Tried your solution 1 & 2 and both worked for me.

Much appreciated.

Afam

Avatar

Avatar
Validate 1
Level 1
famruch
Level 1

Likes

2 likes

Total Posts

24 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
famruch
Level 1

Likes

2 likes

Total Posts

24 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
famruch
Level 1

15-10-2015

Thanks Mandeep,

Worked for me.

Much Appreciated,

Afam

Avatar

Avatar
Boost 5
Employee
mandeepg6805152
Employee

Likes

7 likes

Total Posts

47 posts

Correct Reply

28 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 5
Affirm 3
View profile

Avatar
Boost 5
Employee
mandeepg6805152
Employee

Likes

7 likes

Total Posts

47 posts

Correct Reply

28 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 5
Affirm 3
View profile
mandeepg6805152
Employee

15-10-2015

Can you try radiobutton.value != 0 ??  (supposing 0=No )