PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/
__________________________________________________________________
If you are trying to actually hide the 2nd box while the first is check, you will need
to add code ....
I have done something similar but different then what your asking... I have 2 check
boxes (radio buttons). One when checked unhides a text box that allows the user to
add data.. If the other check box is selected after the 1st is checked, it hides the
text box. Here is the code I used.
There may be a simpler way but I am still learning JS..
The check box is named "Replacement" and the text box is "ReplacementFor"
This may give you some direction....
=============
var ReplacementFor =this.getField ("ReplacementFor")
if (event.target.value == "Replacement") {
ReplacementFor.display = display.visible
}
else {
ReplacementFor.display = display.hidden
}
// Add color
ReplacementFor.bgColor = color.blue
=============
>>> <[EMAIL PROTECTED]> 09/02/03 03:54PM >>>
PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/
__________________________________________________________________
Brent-
It may be a version difference since I am using 5.05. I have 12 checkboxes
all named "sls1", and when you check one, then check another the other one
disappears. It will only let you select one. Rick is right though, in
theory a radio button would work better for what you are trying to do. I
don't know why it works this way in 5.05 and not 6? Good luck with finding
your solution.
Regards,
Justice
-----Original Message-----
From: Brent Hilburn [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 12:32 PM
To: [EMAIL PROTECTED]
Subject: RE: [PDF-Forms] Multi Check Boxes
PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/
__________________________________________________________________
If I name the checkboxes the same thing, then they BOTH get a check when I
select either one. This is the scenario in which I am trying to avoid;
having more than one check in either box! I want box 1 or box 2 (depending
on which is initially checked) to "hide" so that 1 and only 1 can be checked
at a time. I get that to work fine... the problem arrises when box 1 is
checked and box 2 disappears (hides) and then box 2 never re-appears...
Thats where I am stuck...
Brent
>If you give the checkboxes the same name, this should do what you are
>trying
>to accomplish. When you check one of the boxes, then change your mind and
>check the other one, the first one will disappear automatically. Hope this
>helps.
>
>Thanks....Justice
>
>-----Original Message-----
>From: Brent Hilburn [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, September 02, 2003 11:52 AM
>To: [EMAIL PROTECTED]
>Subject: [PDF-Forms] Multi Check Boxes
>
>
>
>PDF-Forms is a service provided by PDFzone.com |
>http://www.pdfzone.com/
>__________________________________________________________________
>
>I have a form that has 2 check boxes on it. I would like to be able to
>"hide" one if someone checks the first one so that the second cannot be
>checked. I've got that part down with no problem...
>
>Where the problem comes in is I want the check box to return if they
>change their mind and uncheck that box...
>
>And it should work this way... Check box 1 and box 2 disappears...
>Uncheck box 1 and box 2 reappears and visa versa...
>
>Can this be handled inside of 6.0 or will I need specific java script
>to handle it? And if so, could someone point me to the correct JS?
>
>Many THANKS!
>
>Brent Hilburn
>
>_________________________________________________________________
>MSN 8: Get 6 months for $9.95/month.
>http://join.msn.com/?page=dept/dialup
>
>
>To change your subscription:
>http://www.pdfzone.com/discussions/lists-pdfforms.html
>
>To change your subscription:
>http://www.pdfzone.com/discussions/lists-pdfforms.html
>
_________________________________________________________________
Enter for your chance to IM with Bon Jovi, Seal, Bow Wow, or Mary J Blige
using MSN Messenger http://entertainment.msn.com/imastar
To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfforms.html
To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfforms.html
To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfforms.html