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

New Here ,
May 03, 2022 May 03, 2022

Copy link to clipboard

Copied

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! 

TOPICS
How to , JavaScript , PDF forms

Views

48

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
May 03, 2022 May 03, 2022

Copy link to clipboard

Copied

At what field does you use the script? 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
May 03, 2022 May 03, 2022

Copy link to clipboard

Copied

LATEST

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

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines