Skip to main content
Participant
May 3, 2022
Question

Adobe form field with Javascript changing text when tab or click out

  • May 3, 2022
  • 2 replies
  • 301 views

I successfully entered Javascript to calculate a participant study ID from another number using <event.value = Math.pow((this.getField("participantID").value), (1/2.71828))>. When I enter a number into the field, it automatically calculates a participant ID. But when I hit Tab to move on, or click on another field in the form, the number changes. I can't figure out what is causing this and how to keep the original calculation.

Thanks for any help! 

This topic has been closed for replies.

2 replies

JR Boulay
Community Expert
Community Expert
May 3, 2022

Check carefully the "Format" tab of the field properties.

Acrobate du PDF, InDesigner et Photoshopographe
Bernd Alheit
Community Expert
Community Expert
May 3, 2022

At what field does you use the script?