Hi guys,
I am fairly new to Adobe Livecycle and javascript in general. I am trying to create a form that has multiple checkboxes. Once a checbox is selected, I want to show a subform. If that checkbox is not selected, I want that subform to be hidden.
Under the click event for the checkbox, I have tried the following:
if (this.rawValue == 1)
{
CheckBox1.presence = "visible";
}
else
CheckBox1.presence = "invisible";
}
I also do not want the subforms to be displayed when the form is opened up, only when the checkbox is clicked.
THIS IS NOT WORKING. PLEASE HELP!!
Thanks
Solved! Go to Solution.
Views
Replies
Total Likes
Use formcalc:
On Click event
if ($.rawValue==1)then
subformname.presence="visible"
else subformname.presence="hidden"
endif
Views
Replies
Total Likes
Then you will have the same code under docReady event of the checkbox as well.....that should do the trick.
Nope Adobe Livecycle Design stopped working when I added that code into the docReady event for the checkbox.
Did I mention that I am using Version 7.0? Not sure whether that makes a difference.
In any case any suggestions in terms of coding to get what I want working??
Views
Replies
Total Likes
Use formcalc:
On Click event
if ($.rawValue==1)then
subformname.presence="visible"
else subformname.presence="hidden"
endif
Views
Replies
Total Likes
Views
Likes
Replies