Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Help with writing Javascript to uncheck checkboxes.

$
0
0

New to Livecycle and Javascript so any help would be appreciated.

I created a form with a table of about 35 rows that consist of various interview  questions. From this list an interviewer would check which 5 questions they plan on asking, click a button and it hides the unchecked boxes, then they can print out the page with their 5 choices.  Then I would like them to be able to click a button and reset the form - showing again all of the checkboxes and none of them selected.

 

I have created a simple javascript to hide the rows of checkboxes that are not checked and then to also unhide them.  The problem is when I unhide them, the 5 boxes I checked still show up as being selected (have an X in the box).  Would like some help on the javascript to uncheck these boxes.

 

I am new at this and I know there probably is an easier way to accomplish it then my script.

 

Here is a snapshot of my form. Each question box is in a row with another row directly below it for data input

form.jpg

 

Here is the Javascript on the Show Checked Items button.

Button 1 hide.jpg

Here is the javascript on the Show All button

button 2 unhide.jpg


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>