I made a time and attendance form with includes a overtime form which is two pages. If the employee didn't have overtime I made a button to delete the overtime pages. I can't get the button to work. Below is my JavaScript. I been reading and reading, but I can't figure out what I did wrong. I very new to java scripting. I'm using Livecylce Designer ES 8.2. I have to adjust for the zero based page numbering, but does the Master page start at 0 or the Title page 0. I tried both, but neither worked. Any ideas?
form1.TitlePage.Button2::click - (JavaScript, client)
this.deletePages({nStart:4, nEnd:5});
this.deletePages({nStart: this.numPages-2, nEnd: this.numPages-1});
Edit: Oops... there was an error in my code. It's fixed now.
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com