Expand my Community achievements bar.

how to make a checkbox that makes a subform visible also go to the subform

Avatar

Former Community Member

Newbie here - no java knowledge. I have a subform that becomes visible when a checkbox is used. How do I make the form go to the subform as it becomes visible? Thanks for your help! RL

4 Replies

Avatar

Level 6

I understand the problem in this way

Outer Subform contains - check box and hide/unhide subform

depending on ur check box value tale the outer subform for ur process(which include both check box and hide/unhide subform)

will this solve ur problem?    

if this is correct please check the attached sample.         

otherwise can u explain little more detail about ur problem.                 

Avatar

Level 6

im able to download the attached file. same file attached in this thread also, if ur unable to download send me ur email id.

Avatar

Former Community Member

Sorry - I was reading your messages in my email, not on the forum page.

My original form is very long, with many options on it. When an option is chosen, I have a subform become visible, but the user would have to scroll down to see it. I'm making the form for teens, and want it to be foolproof and bombproof. So I need the selection of a checkbox to take the user directly to the subform. See "What will you be performing?" with vocal, musical theatre, theatre, dance, instrumental checkboxes on the attached form.

I have been using:

if (this.rawValue == 1){

VocalSubformPage2.presence = "visible";

}else{

VocalSubformPage2.presence = "hidden";

}

event.target.pageNum = 1;

as suggested by Patrick, but it isn't working consistently. I have a subform for each category as a separate page. The content is positioned to stay on that page, and can't flow into another. Thanks for your help.

Randee