Hi,
In my form there are text fields which display default text. If the from is opened in pdf file, these fields show the default texts. User types new data and default text are deleted and the form saved.
If the same form is opened again than the textfields still have the default texts, not the typed text.
Data are connected to xsd file and it is a online form.
To solve this problem I created a javascript but it does not work. It was:
"initialize -javaScript, client"
"x" is a dummy field. It is only-once action.
if (DataSource.P0.x.rawValue = "null") {
DataSource.P0.x.rawValue = "b";
DataSource.P1.y.rawValue = "window";
DataSource.P2.z.rawValue = ""XP";
}
How can I solve this problem?
regards,
Mesut
To debug it you need to create a simplified test form, where you can check each of the things that are done to the form.
In your script, the quoted "null" is the string value "null". You want to test agains the actual null value, so don't quote it. But you should not have to do this at all.
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script