on 08-31-2009 6:25 AM
On the Click event of a Button, I have written some JavaScript code.
But when i click on the Button, some part of the code works while the remaining does not.
There are no syntax errors also.
I am using button which is under the 'Standard' section of the Library.
Please help.
the field which i was accessing in the javascript was actually not on the layout even though it was showing up during design.
But in Preview it was not there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can check for the JavaScript errors in the Adobe Form. This can be done like open the saved form in Adobe Reader and press Control+J keyboard entries then the JavaScript Debug Console will be opened and if any errors are present then it shows up all the error messages.
If you want to show errors if present always then open the Adobe Reader and goto Edit->Preferences and there select Javascript and in the Right panel under JavaScript Debugger select "Show Console on Errors and Messages".
This will help you in identifying the errors if any present in the form.
Regards
Pradeep Goli
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks.
But i have cross checked all these possibilities.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Just see the PDF preview of ur form , it will show the errors in ur script , if any..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There are two reasons why Javascript that you have written that may not work:
a) Syntax errors in your Javascript (look carefully, we always miss it)
b) Runtime errors -
i) You may have changed the name of the field but still referring to the old field
ii) Added a new subform but still referring to the old field
iii) Using xfa.resolve and that particular data node has been hardcoded i.e. within strings but in reality that node doesn't exist at all
Regards,
Subramanian V.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.