@Override public int execute(final FormObject form,final int type,final String code,final int eventType,final char keyPressed){
  int messageCode;
  final String js=code;
  final String[] args=JSFunction.convertToArray(js);
  final String command=args[0];
  if (command.startsWith("AF")) {
    messageCode=handleAFCommands(form,command,js,args,eventType,keyPressed);
  }
 else {
    executeFunctions(js,form,acro);
    messageCode=ActionHandler.VALUESCHANGED;
  }
  if (type == PdfDictionary.F) {
    calcualteEvent();
    messageCode=ActionHandler.VALUESCHANGED;
  }
  return messageCode;
}

@ Override public int execute ( final FormObject form , final int type , final String code , final int eventType , final char keyPressed ) { int messageCode ; final String js = code ; final String [ ] args = JSFunction . convertToArray ( js ) ; final String command = args [ 0 ] ; if ( command . startsWith ( "AF" ) ) { messageCode = handleAFCommands ( form , command , js , args , eventType , keyPressed ) ; } else { executeFunctions ( js , form , acro ) ; messageCode = ActionHandler . VALUESCHANGED ; } if ( type == PdfDictionary . F ) { calcualteEvent ( ) ; messageCode = ActionHandler . VALUESCHANGED ; } return messageCode ; }
execute javascript and reset forms values
