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

George

Thanks much for the explanation. I appreciate it.

Kenn


----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 14, 2004 12:18 PM
Subject: Re: [PDF-Forms] Question about Selecting a Radio Button by Default



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

> The whole "button is checked by default" angle threw me for a loop. It
seems
> as though the default setting is cosmetic, and that the action cannot be
> performed until the buttonis physically clicked by the user. A lesson
> learned I suppose.

You need to understand exactly what happens when you use a "Reset Form"
action. It simply sets the values of the specified fields equal to their
default value, nothing else. It seems as though you're expecting it to also
execute the code that you've placed in the radio button's Mouse Up event,
but that's not what happens. You might want to add a JavaScript action to
your Clear button to set up the combo boxes correctly. Another approach
might be to get rid of the Reset Form action in the Mouse Up event of the
button and do the resetting and setting up of the combo boxes entirely with
JavaScript.

Note that for other types of fields, such as text fields and combo boxes,
when the field value changes as the result of a Reset Form action occuring,
their Validate and Format events will get triggered.

George


>
> PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/
> __________________________________________________________________
>
> David
>
> No problem - I understand the lack of sleep thing all too well. Thanks for
> looking at this for me and teaching me how to make this work..I appreciate
> the help.
>
> The whole "button is checked by default" angle threw me for a loop. It
seems
> as though the default setting is cosmetic, and that the action cannot be
> performed until the buttonis physically clicked by the user. A lesson
> learned I suppose.
>
> Thanks again for your help.
>
> Kenn.
>
>
>
> ----- Original Message ----- 
> From: "david lindblad" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, April 14, 2004 7:21 AM
> Subject: Re: [PDF-Forms] Question about Selecting a Radio Button by
Default
>
>
>
> PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/
> __________________________________________________________________
>
> Sorry about that, Kenn not Karen... lack of sleep thing :)
>
> Dave
>
>
>
> On 14-Apr-04, at 5:57 AM, kc wrote:
>
> >
> > PDF-Forms is a service provided by PDFzone.com |
> > http://www.pdfzone.com/
> > __________________________________________________________________
> >
> > George
> >
> > Thanks for your response. I am doing this with JavaScript. It is
> > placed on
> > the three radio button fields. Each button has a different export
> > value.
> > Whichever button is selected controls which combo box is displayed.
> >
> > The first radio button will be hidden from the user. I set the
> > properties
> > for this button to "button is checked by default". When the "Clear"
> > button
> > is clicked, the default radio button becomes selected, but the combo
> > box
> > that it controls is not displayed.
> >
> > The JavaScript on the three radio buttons is below (the conditions of
> > false
> > vs true do vary for each of the three buttons):
> >
> > var blank = this.getField("cbo_spon_blank")
> > var gmm = this.getField("cbogmm_spon")
> > var dmm = this.getField("cbodmm_spon")
> >
> > blank.hidden = false
> > gmm.hidden = true
> > dmm.hidden = true
> >
> >
> > Perhaps an example would make this easier. I've placed one at
> > http://www.polar.icestorm.com/sfl/radio_button_example.pdf
> >
> > Thanks again for any help on this.
> >
> > Kenn
>
>
> 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



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

Reply via email to