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

Create RadioButton To hide text box

Avatar

Level 1

I am trying to create a radio button that when clicked an existing textbox is hidden.

here is my code:

 

if

(RadioButtonList22.rawValue ==

true)

TextBoxExc1.presence = "hidden";

else

TextBoxExc1.presence = "visible";

I am inserting this under a click event on my RadioButtonList22.

Nothing happens when I test the form.  I click the radio button by the text box does not hide.

Thank you!

0 Replies

Avatar

Level 1

Hi there,

It looks as if you are missing the curly brackets in your if statement.

try:

if (RadioButtonList22.rawValue == true) {

TextBoxExc1.presence = "hidden";

}else{

TextBoxExc1.presence = "visible";

};

cheers