No announcement yet.

Problem with JavaScript and FoxIt - simple replacement for event.value?

  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with JavaScript and FoxIt - simple replacement for event.value?

    We have a PDF that was originally created in Adobe Acrobat that uses JavaScript to handle some scoring and graphing logic. The logic unfortunately does not work directly on FoxIt Reader/Phantom PDF.

    We've determined the issue stems from how Adobe and FoxIt seem to handle scripts. In Adobe, "event.value" is localized to the object calling the script. However, this doesn't carry over to FoxIt. We've managed to return some functionality by replacing this value with the specific object's name such as "this.getField("<insert object name>").value".

    This would be quite tedious to go through the entire script and replace every instance of event.value with the unique field names.

    Is there an alternative to replace event.value with a generic call/make the script local to the field calling it, or is the only way to go through and specifically call each field by name based?

  • #2
    Fritzdaworm ,Would you please help to send us the corresponding PDF file with JavaScript included for handling scoring and graphing logic? So that we will pass it on to Dev team to further diagnose the issue based on this document and give you workaround.
    If it is inconvenience to upload the file here, you may email it to (Attn:Lisa). And indicate this thread link. Thank you.