Previous | Next | (P-PDF) JavaScript
Topic: Re: mandatory field (Via Email)
Conf: (P-PDF) JavaScript, Msg: 28525
From: prodok
Date: 10/13/2001 10:20 PM
You don't miss anything. This behavior is absolutely correct, as you
change the value in that field from something to nothing, which will
create the error message.
One workaround would be to set a flag when you do a reset, and check
for this flag and suppress either calling the function or have the
function do nothing when the flag is set.
Hope, this can help.
Max Wyss
PRODOK Engineering
Low Paper workflows, Smart documents, PDF forms
CH-8906 Bonstetten, Switzerland
Fax: +41 1 700 20 37
e-mail: mailto:max@prodok.com
http://www.prodok.com
[ Building Bridges for Information ]
______________________
Shameless Plug:
I will have presentations and pre- and post-conference workshops at
the .PDF2001 West Conference in Scottsdale, AZ, Nov. 5 to 7, 2001.
More details at http://www.pdfconference.com.
Workshops:
Nov. 4: Implementing Business Processes based on PDF
Nov. 8: Enhancing PDF Forms
_________________________
>I have a form, my client required me to write javascript for that
>Last Name, First Name, and address.
>I write javascript in validation
>
>function checkit()
>{
>var str=event.value
>var str=getField("st_number");
>if ((event.value==null)||(event.value=="")){
>app."Enter the street number.");
>event.rc=false;
>}
>it works, but the value is still in the field,and the message pop up
>when I click clear form button. Do I miss any thing in javascript.
>