Print Page | Close Window

Hide Specific Table Rows based on Checkbox

Printed From: Foxit's Planet PDF Forum
Category: Lets Talk PDF
Forum Name: [Commercial] Adobe LiveCycle Designer Forms
Forum Description: Discussions relating to Adobe LiveCycle Designer and XFA forms.
URL: http://forums.planetpdf.com/forum_posts.asp?TID=526
Printed Date: 21 Oct 2019 at 11:55pm
Software Version: Web Wiz Forums 11.10 - http://www.webwizforums.com


Topic: Hide Specific Table Rows based on Checkbox
Posted By: liztapanes
Subject: Hide Specific Table Rows based on Checkbox
Date Posted: 07 Sep 2012 at 4:16am
http://forums.adobe.com/message/4679689#4679689 - Hide Specific Table Rows and Subforms based on CheckBox Value

Attempting to make a document as follows:

 

3 pages

 

1 table/3 rows with a checkbox on each row, each of the 3 tables is wrapped in a subform

 

Users select one or two of the 9 checkboxes,

 

Upon printing the form, I want the UNSELECTED Checkbox Rows to become hidden.

 

******************

 

Here is the code I have tried among others. Am I on the right track?

 

form1.#subform[0].PrintButton1::mouseExit - (JavaScript, client)

 

form1.#subform[0].Table1.Row2.presence = "visible";

 

if (form1.#subform[0].Table1.Row1.CheckBox1.rawValue == 1)

{

    form1.#subform[0].Table1.Row2.presence = "hidden";

}

else

{

    form1.#subform[0].Table1.Row2.presence = "visible";

}





Replies:
Posted By: mmazal
Date Posted: 21 Jan 2015 at 5:36pm
You are on the right track.
Make it simpler on yourself by putting the code to hide the rows (if checked) into the prePrint script.
Then add code to the postPrint script to make the rows 'visible' (whether checked or not you want them back, right?)



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.10 - http://www.webwizforums.com
Copyright ©2001-2017 Web Wiz Ltd. - https://www.webwiz.net