PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/ __________________________________________________________________

I don't know for sure, but I'm assuming Adobe javascript is the same as regular javascript... where all you would have to do is set the value to the opposite of its current state. A "NOT" operator.

I don't know the exact attributes or methods... but I'm sure its something like this:
for example:


field1.display = !field1.display
or
field1.visible = !field1.visible


that would eliminate all the if/then checking.




----Original Message Follows----
From: "Rick Warren" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
Subject: RE: [PDF-Forms] Multi Check Boxes
Date: Tue, 02 Sep 2003 16:37:27 -0400
MIME-Version: 1.0
Received: from mc5-f33.law1.hotmail.com ([65.54.252.40]) by mc5-s1.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Tue, 2 Sep 2003 13:46:04 -0700
Received: from etrn.binc.net ([205.173.176.8]) by mc5-f33.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Tue, 2 Sep 2003 13:42:29 -0700
Received: from localhost ([EMAIL PROTECTED])by etrn.binc.net (8.11.6/8.11.3) with ESMTP id h82KdYq20738;Tue, 2 Sep 2003 15:39:34 -0500
Received: by egprime.binc.net (bulk_mailer v1.13); Tue, 2 Sep 2003 15:37:49 -0500
Received: (from [EMAIL PROTECTED])by etrn.binc.net (8.11.6/8.11.3) id h82Kbm820170;Tue, 2 Sep 2003 15:37:48 -0500
X-Message-Info: bIUPYgMBwnc5XO39fYNappZYem+cD81BybMYSBwqIFU=
Message-Id: <[EMAIL PROTECTED]>
X-Mailer: Novell GroupWise 5.5.2
X-MIME-Autoconverted: from quoted-printable to 8bit by etrn.binc.net id h82Kbld20158
Sender: [EMAIL PROTECTED]
X-URL: <http://www.pdfzone.com/discussions/lists-pdfforms.html>
X-HELP: <mailto:[EMAIL PROTECTED]>
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 02 Sep 2003 20:42:30.0071 (UTC) FILETIME=[BA445470:01C37192]



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

_________________________________________________________________
Get MSN 8 and help protect your children with advanced parental controls. http://join.msn.com/?page=features/parental



To change your subscription: http://www.pdfzone.com/discussions/lists-pdfforms.html



Reply via email to