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

Creating Radio Checkboxes the Span Pages in Livecycle

TheCFC
Registered: Dec 8 2005
Posts: 9
Answered

I am using Thom Parker's code from his AcrobatUsers class called "Creating Radio Checkboxes". The code works fine if all the checkboxes are on the same page.

However, in my form one of the radio checkboxes is on another page. The radio button cannot be deselcted and the whole group loses it's mutual exclusivity features created by Thom's code.

Is there an easy way to fix this? The forum won't let me post the javascript here because it looks like HTML and I'm new.

Forms Manager
Toyota Financial Services

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Radio button by nature have to be part of the same grouping. In LiveCycle this usually means they need to be on the same page. But that's not necessarily a problem.

If this is a static form the buttons can be part of the same logical exclusion group (on the hieararchy tab), but be in different physical locations. Otherwise it gets more complex.

If this is a dynamic form the physical and logical location will probably need to be the same. It depends on the level of separation. But there are solutions. For example you could place invisble buttons in the group, and then use code in an invisible button to tie it to a visible button somewhere else on the form. Sort of button proxies. And there are other things you can do. But how simple or difficult a solution is to implement really depends of the specifics of the situation.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

TheCFC
Registered: Dec 8 2005
Posts: 9
Thanks, Thom.

It is a dynamic form, so I could try the proxy if I can figure out the javascript. But then wouldn't it be easier to just use checkboxes and write code that says if this box is turned on these other two boxes are turned off? I only have three boxes to do this to. They are on separate pages and I want to make them mutually exclusive. Which event is best for this? Most of my form users are power users who prefer not to use the mouse.

Forms Manager
Toyota Financial Services

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
So you have 3 check boxes on separate pages, there's no grouping in one place? then yes, its much easier to write code specific for your situation. Use the change event. This event is fired whenever the field value is changed from any source, not just the user clicking on the field.
The new value of the field will be in "this.rawValue"

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script