These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Checkboxes Disappear from Form [Form Attached]

Tech264
Registered: Apr 4 2008
Posts: 111
Answered

This post is based on this thread:
http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=22067
----

I'm working with this form below that based on the thread above except somehow my check boxes disappear when I try unchecking the box. Any ideas why my boxes disappear?

Don't know if it's because I'm working with tables but I have a column in a table that's called New Goals and those boxes don't disappear. Here's the code I'm using for that column.

---------------
if (form1.Page1.Table4.Row1.NewGoal1.NewGoal1.rawValue == 1)
{Goal1.presence = "visible"
}
else
{Goal1.presence = "hidden"
}
if (form1.Page1.Table4.Row1.NewGoal1.NewGoal1.rawValue == 1)
{Goal1.Table5.Row1.Goal1.Goal = "1"
}

-----------

Then in another column in the same table which is labeled Previous Goal Revised. I have this code:

if (form1.Page1.Table4.Row1.Rgoal1.RevisedGoal1.rawValue == 1)
{RevisedGoal1.presence = "visible"
}
else
{RevisedGoal1.presence = "hidden"
}
if (form1.Page1.Table4.Row1.Rgoal1.RevisedGoal1.rawValue == 1)
{RVGOAL1.Table5.Row1.Goal1.Goal = "1"
}

-----------

I'm attaching the form so you can see the problem I'm having.

http://www.narcofreedom.com/forms/keep.pdf

If you click on Page 1 below where in the column says "Previous Goal Revised" It's suppose to unhide a page called RevisedGoal1.

Also in that same table in the column that says "New Goal" that also unhides a page called Goal1.

Thank you!

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Hi,

there is a typing error in your script.
The object path you typed in you syntax does not exist in your form, for example.
And you missed the ; at the end of the code lines.

Wrong syntax
[color=#FF0000] form1.Page1.Table4.Row1.NewGoal1.NewGoal1 [/color]

form1.Goal2::ready:layout - (JavaScript, client)if (form1.Page1.Table4.Row1.NewGoal1.NewGoal1.rawValue == 1){this.presence = "visible"}else{this.presence = "hidden"}if (form1.Page1.Table4.Row1.NewGoal1.NewGoal1.rawValue == 1){Goal1.Table5.Row1.Goal1.Goal = "1"}

Correct syntax
[color=blue] form1.Page1.Table4.Row1.Ngoal1.NewGoal1 [/color]


form1.Goal2::ready:layout - (JavaScript, client)if (form1.Page1.Table4.Row1.Ngoal1.NewGoal1.rawValue == 1){this.presence = "visible";form1.Goal1.Table5.Row1.Goal1.Goal.rawValue = "1";}else{this.presence = "hidden";form1.Goal1.Table5.Row1.Goal1.Goal.rawValue = null;}

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

Tech264
Registered: Apr 4 2008
Posts: 111
Thank you for responding. Thank you also for fixing my syntax code. I'd sure love to know what I was doing wrong with that JavaScript code. Anyhow, I figured out that not only was my syntax code writing was not proper although it did work for some reason but that in my click code for the check boxes that were disappearing was because I referenced them to an older name I had for the subform called "RevisedGoal". Once I changed it to the proper name the boxes don't disappear.