Expand my Community achievements bar.

SOLVED

All check boxes must be checked

Avatar

Former Community Member

I want a text box to be visible unless all three check boxes in a table are checked. If all three check boxes are checked, I want the text box to be hidden. I have an idea of how to get there, but I am not hitting paydirt. (I can do it for a single check box, or for a single radio button.)

Thanks for the help!

1 Accepted Solution

Avatar

Correct answer by
Level 6

Write the script on all 3 check boxes with all 3 checboxes values each time. bcz if 3 selected then only text field needs to hidden.

Here iam using on change event, may be u can write which events(ex: exit) suits for ur requirement.

here is the java script code(write the same code for all 3 check boxes):

if((CheckBox1.rawValue == '1') && (CheckBox2.rawValue == '1') && (CheckBox3.rawValue == '1') ) //CheckBox selected ==1, not selected == 0
{
TextField1.presence = "hidden";
}
else
{
TextField1.presence = "visible";
}

Hope this will help.

RAGHU

View solution in original post

3 Replies

Avatar

Correct answer by
Level 6

Write the script on all 3 check boxes with all 3 checboxes values each time. bcz if 3 selected then only text field needs to hidden.

Here iam using on change event, may be u can write which events(ex: exit) suits for ur requirement.

here is the java script code(write the same code for all 3 check boxes):

if((CheckBox1.rawValue == '1') && (CheckBox2.rawValue == '1') && (CheckBox3.rawValue == '1') ) //CheckBox selected ==1, not selected == 0
{
TextField1.presence = "hidden";
}
else
{
TextField1.presence = "visible";
}

Hope this will help.

RAGHU

Avatar

Former Community Member

I tried this but I can't seem to get it to work. I tried variations on this: click, mouse exit, etc. Not sure what I am doing wrong...

If I could figure out how to upload the darned form, I would--I don't recall it being such a mystery to do so last time I posted a question up here.

Thanks for any help!

Avatar

Level 6

I am unable to post the sample pdf here, otherwise send me ur email id i will post the sample.

If possible can u post ur pdf to my email : raghu.nagireddy@gmail.com

RAGHU.