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
BedrockMission!

Learn More

View all

Sign in to view all badges

HELP PLEASE?!?! Second Page Subform.

Avatar

11-08-2008

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";

}

Replies

Avatar

Avatar
Boost 1
Level 2
Soren_Hoy
Level 2

Like

1 like

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 2
Soren_Hoy
Level 2

Like

1 like

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
Soren_Hoy
Level 2

12-08-2008

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.

Avatar

13-08-2008

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

Avatar

26-08-2008

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.