• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Is it possible to check destination field value with initial field value and then insert changed value in a field?

New Here ,
Sep 07, 2018 Sep 07, 2018

Copy link to clipboard

Copied

To clear things up a little bit:

Field1.value = Test (this one is copied to Field 2)

Now Field1.value is changed to “Tester”.

As I have multiple fields which are copied into a list on another page, I have to check, if destination field value equals the initial field value of Field1 (“Test”) and if so, overwrites it with the new value “Tester”.

If not the Field1.value should be copied into an empty field.

TOPICS
Acrobat SDK and JavaScript , Windows

Views

209

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
LEGEND ,
Sep 07, 2018 Sep 07, 2018

Copy link to clipboard

Copied

LATEST

The field object has both a "value" property and a "defaultValue"  property so it is possible to compare the value of field to it's or another field's default value. You will have to use the "getField" method to access a specific field's object. If your script is accessing a field you currently are in,then use the "event.value".

Votes

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