hi
I have a pdf form that have a button, a inputText and two check box, when i push the button fires a javascript to validate if one of the check box is on then the input text dont have to be empty, is a very simple example.
When i open my form with Adobe 9 it works fine the javascript makes the validation but when i open my form in a web browser it dont works.
this is the script that i use, it is inside of my form and de action of my button calls it
"function validate() {"
+ "var married = this.getField('married');"
+ "var partner = this.getField('partner');"
+ "if (married.value == 'yes' && partner.value == '') {"
+ "app.alert('please enter the name of your partner');"
+" }");
I hope you can help me.
Regards
It appears you do not have matching braces for the function definition. The line "});" appears to terminate your 'if' statement and 'function' definition. Also a function definition does not end with a semi-colon.
George Kaiser