/ Forums / Id-Extras Forum / Simplified Field Notation

  • Author
  • #6207 Reply
    chrismarsden
    Participant

    Hi, is it possible to add a calculation script that will appear in the Simplified Field Notation section?

    • This topic was modified 1 year, 8 months ago by ~~Ariel~~.
    #6450 Reply
    ~~Ariel~~
    Participant

    Hi Chris,
    I’m not aware of a way to get the script to appear in the Simplified Field Notation section (although it’s not impossible that there might be some way of doing so — I’ll update here if I find anything).
    So, you’d need to convert your simplified syntax to a full script, and it will then appear in the Custom Script panel, not the simplified panel. It’s very easy to make the conversion. For instance, if you’ve got this simplified notation:

    Code:
    (Text1+Text2)*(Text1-Text2)

    It would become:

    Code:
    event.value=((this.getField(“Text1”).value+this.getField(“Text2”).value))*((this.getField(“Text1”).value-this.getField(“Text2”).value));

    In other words, wherever in the simplified notation you just type the name of the field (e.g.

    Code:
    Text1

    ), you’d need to replace that with (e.g.)

    Code:
    this.getField(“Text1”).value

    , and at the beginning of the line just add

    Code:
    event.value =

    as shown above.
    More info here: https://helpx.adobe.com/acrobat/using/manage-form-field-properties.html
    Does that help?
    Ariel

Viewing 2 posts - 1 through 2 (of 2 total)

Tagged: 

Reply To: Simplified Field Notation
Your information: