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

Mark radio button based on value of text field

Avatar

Level 3

Hi All,

I have one textfield and one radio button.

if i type for example in textfield 100 the radio button should be marked if it's not 100 then it should be not marked.

I use this code in java scripts when i click on textfield, but it doesnt work. can anyone help me??

if (textField.rawValue = 100) {

radiobutton.rawValue = 1;

} else {

radiobutton.rawValue = 0;

}

Thank you in advance!!

Diana

0 Replies

Avatar

Level 4

put it on exit event

and it should be == 100 not = 100

Avatar

Level 3

ok, now i can explan it better with attached form.

first step: if i click in dropdownlist "a" and put in numeric field a number bigger than 99 the, checkbox should be marked and  second step: a textfield1 should be visible.

the first step works perfectly, you have already helped me, but the second doesnt work.

do u have any idea why?

thanks!!

Diana