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

HELP PLEASE?!?! Second Page Subform.

Not applicable
I am looking for a little assistance with a form I am working on. Let me start by saying I am relatively new to form design and am not a programmer so please be gentle.



I have a form that the first page is always present. I have seven (7) different subforms that will make up page two of the form based on a radio button selection. I have page two set to hidden so when you open the form there is only one page.



What I am having an issue with is getting page two to generate (or the particular subform to be visible) when one of the radio buttons is selected.



I thought I could use this on click to make that happen but i t doesn't work. Any assistance would be greatly appriciated.



if(this.rawValue == 1)

{

form1.SheetPage.one.presence = "visible";

}

else

{

form1.SheetPage.one.presence = "hidden";

}

if(this.rawValue == 2)

{

form1.SheetPage.two.presence = "visible";

}

else

{

form1.SheetPage.two.presence = "hidden";

}

if(this.rawValue == 3)

{

form1.SheetPage.three.presence = "visible";

}

else

{

form1.SheetPage.three.presence = "hidden";

}

if(this.rawValue == 4)

{

form1.SheetPage.four.presence = "visible";

}

else

{

form1.SheetPage.four.presence = "hidden";

}

if(this.rawValue == 5)

{

form1.SheetPage.five.presence = "visible";

}

else

{

form1.SheetPage.five.presence = "hidden";

}

if(this.rawValue == 6)

{

form1.SheetPage.six.presence = "visible";

}

else

{

form1.SheetPage.six.presence = "hidden";

}

if(this.rawValue == 7)

{

form1.SheetPage.seven.presence = "visible";

}

else

{

form1.SheetPage.seven.presence = "hidden";

}
3 Replies
Soren_Hoy
Level 2
Level 2
Hi Eagle

At a first look at your code it seams fine, but it can be something in the form that gives you the problem. Can you provide a link for the form.
Not applicable
Soren,



The form is located here.



http://www.qos-inc.com/images/order_confirmation_form_v4.pdf



I would greatly appriciate you looking at it and pointing me in the right direction.



Thanks in advance
Not applicable
Eagle01,



Let's try streamlining your script a bit....



In the radio button that will generate the hidden page to appear, place the below code (make sure you change certain tags/names to match your items) in the click event:



app.alert("Please fill out the Continuation Sheet provided.", 3, 1)



if (event.target.value =1) {

form1.YourHiddenSubformName.presence = "visible"

}

else {

form1.YourHiddenSubformName.presence = "invisible"

}



The subform that needs to stay hidden....in the subform's "presence" tab, select "Hidden: Exclude from layout".

See if this helps.