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

Adobe LiveCycle radio checkboxes issue

EcoFreak
Registered: Jun 16 2010
Posts: 9

I'm using adobe live cycle to create various dynamic forms, but i have a issue within one of my pdf's, which is:

- I have a form with multiple checkboxes, and need to limit the user from selecting more than one, i found a solution, radio checkboxes, but the problem in that solution is the need to change all the checkboxes to the same name in order to create indexes for them, that works, but i canĀ“t change the names of my checkbox, i need them to be the same as they are now.

- In that same page i have multiple checkboxes as i said previously, but, they are in different "groups"(i don't if i can call it that).
imagine this:

[Checkbox1] Text
[checkbox3] Text
[checkbox4] Text
[checkbox2] Text
[checkbox5] Text [checkbox6] Text [checkbox7] Text

checkbox1&2 , only one can be selected
checkbox3&4 , only one can be selected (can only be selected when checkbox1 is selected)
checkbox5&6&7 ,only one can be selected (can only be selected when checkbox2 is selected)

P.S.: I probably have to do this with code, no problem. But how to simplify it to the maximum, i will need to do this procedure in various forms. Do i wrap it in a sub-form?Ideas?

P.S.2: Sorry for my English(I'm Portuguese so...).

Thanks in advance!!!

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Why can't you use radio buttons? The only advantage to using a Radio Checkbix is that the user can turn the selection off.

It is not necessary to give all the check boxes the same name. That solution is for an AcroForm, not a LiveCycle form. They are very different form technologies.

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

EcoFreak
Registered: Jun 16 2010
Posts: 9
I'm now using radio checkboxes, and they are working, but i wan't to, in certain cases read-only.
Is it possible???
like this:

[Checkbox1] Text
[checkbox3] Text
[checkbox4] Text

Only select checkbox3&4 if checkbox1 is select.How to do it?
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Yes, Place code in "Checkbox1" to disable/enable or hide/show the other check boxes. One way to do this is to place the sub-checkboxes into a subform.

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

EcoFreak
Registered: Jun 16 2010
Posts: 9
Isn't it possible to change the property type, located in the value tab?????
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
What property are you refering to?

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

EcoFreak
Registered: Jun 16 2010
Posts: 9
In livecycle, in the object properties, there's a tab named "value", and one of the properties in that tab is "Type" which is one of 5 options wich include "User Entered" and "Calculate - ReadOnly".(or something like that)

I'm asking for a way to change this property trough code.

Best Regards!
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Read this article, it contains everything you need to know about disabling fields:
http://www.acrobatusers.com/tutorials/2007/09/js_disabling_fields

Have you downloaded the "XML forms Object Reference"? This is basically the SDK reference for LiveCycle scripting. Everything you need to know is in there.


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