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

SOLVED

Hidden/visible subform to appear in two places

stephenf8734174
Level 3
Level 3

I am creating a form that includes if/else radio boxes that have a form visible or remain hidden. I want the document to include a page/s at the back that includes all visible subforms in a 'summary' format (this page will include a header/footer). I only want this page to appear if there are visible subforms in the front part of the form. And, if possible, I want only these 'summary' pages to print when the print button is clicked on. I don't have much experience coding - is this possible? Thanks for any assistance.

1 Accepted Solution
MinusZero
Correct answer by
Level 7
Level 7

Hi,

Yes that would be totally possible to achieve.

If you dont have much experience coding, using the Action Builder will help you achieve most of the things you are after.

On your summary page, you can simply see if a radio button is checked and if it is, show some text on the summary page

I would put this into the click event of the radio button. This is just a very basic representation of what you could do, there are other ways to do it. if you are creating a flowed form you might want to do this differently, you could even concatenate text into one field rather than using separate fields.

form1.formPage.RadioButtonList.ifRadioButton::click - (JavaScript, client)

this.resolveNode("summaryPage.Text1").presence = "visible";

form1.formPage.RadioButtonList.elseRadioButton::click - (JavaScript, client)

this.resolveNode("summaryPage.Text1").presence = "hidden";

If it possibly to print a specific page but I havent had too much experience with doing it. You could try hiding all the other pages in the form's pre-print event and making them visible again in the post print event. I have found though, that you cant hide page 1 of a form.

View solution in original post

2 Replies
MinusZero
Correct answer by
Level 7
Level 7

Hi,

Yes that would be totally possible to achieve.

If you dont have much experience coding, using the Action Builder will help you achieve most of the things you are after.

On your summary page, you can simply see if a radio button is checked and if it is, show some text on the summary page

I would put this into the click event of the radio button. This is just a very basic representation of what you could do, there are other ways to do it. if you are creating a flowed form you might want to do this differently, you could even concatenate text into one field rather than using separate fields.

form1.formPage.RadioButtonList.ifRadioButton::click - (JavaScript, client)

this.resolveNode("summaryPage.Text1").presence = "visible";

form1.formPage.RadioButtonList.elseRadioButton::click - (JavaScript, client)

this.resolveNode("summaryPage.Text1").presence = "hidden";

If it possibly to print a specific page but I havent had too much experience with doing it. You could try hiding all the other pages in the form's pre-print event and making them visible again in the post print event. I have found though, that you cant hide page 1 of a form.

View solution in original post

stephenf8734174
Level 3
Level 3

Thanks for that - have been able to use those principles to get it working how I needed it. Cheers!