PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/
__________________________________________________________________
Hi List
I have a radio button on my form with export values assigned to it. I would
like to use the export values to determine whether another field should be a
required field.
The radio button field is called "rdo_media_type". In my script this field
is defined as f20
for example, f20 = this.getField("rdo_media type");
This field has three export values,
lbo_tv
lbo_radio
lbo_outdoor
Once the user selects the radio button and fills out all the other fields on
the form, they click a button that checks the required fields. There is one
particular field, f10, that I do not want to be required if the export value
of f20 equals lbo_outdoor.
How do I plug that export value into my script? I tried to tell JavaScript
that the export value has meaning via the portion of the script shown below,
but it does not make field f10 required. Is there more I have to do to
define the export values?
if (event.changeEx in f20)
else if (f10.value == "Enter a dollar amount." && f22.value
== "lbo_radio" && f22.value == "lbo_tv")
{app.alert ('Please enter the amount of your media budget.');
if (typeof app.formsVersion != "undefined" && app.formsVersion >=
4.0)
f10.setFocus();}
Thanks for any ideas you may have.
Kenn
To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfforms.html