Planet PDF Forum Planet PDF Forum
  New Posts New Posts RSS Feed - Hide Specific Table Rows based on Checkbox
  FAQ FAQ  Forum Search   Register Register  Login Login


Hi, welcome to the Foxit Planet PDF Forum. If you have PDF or Adobe Acrobat questions then the right place to ask them is here, in this forum.

Hide Specific Table Rows based on Checkbox

 Post Reply Post Reply
Author
liztapanes View Drop Down
New Member
New Member


Joined: 07 Sep 2012
Points: 1
Post Options Post Options   Quote liztapanes Quote  Post ReplyReply Direct Link To This Post Topic: Hide Specific Table Rows based on Checkbox
    Posted: 07 Sep 2012 at 4:16am
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";

}


Back to Top
Sponsored Links


Back to Top
mmazal View Drop Down
New Member
New Member
Avatar

Joined: 20 Jan 2012
Location: Kitchener, ON
Points: 10
Post Options Post Options   Quote mmazal Quote  Post ReplyReply Direct Link To This Post 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?)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.10
Copyright ©2001-2017 Web Wiz Ltd.

This page was generated in 0.016 seconds.