Skip to main content
Donna Rae H.
Participating Frequently
September 9, 2022
Question

If / Then statement based on another field's value

  • September 9, 2022
  • 3 replies
  • 9707 views

Hi there,

 

I'm trying to create a form and want to add an If/Then statement, based on the value of another field within the form.


So, if the value of [field] = 1, then the value of the current field should = "X".

Does anyone know the syntax for that? (And I mean literally, if the value of a field = 1 then the value of the other field should be "X".

 

Thanks in advance for your help!

    This topic has been closed for replies.

    3 replies

    Nesa Nurani
    Community Expert
    Community Expert
    September 10, 2022

    Here you go:

    if(this.getField("field").value == 1)event.value = "X";

    Donna Rae H.
    Participating Frequently
    September 13, 2022

    Thank you! I appreciate it! 🙂

    Abambo
    Community Expert
    Community Expert
    September 10, 2022

    It looks like an employee evaluation form. So, my guess is Acrobat, and I will move the thread to the Acrobat forum.

    ABAMBO | Hard- and Software Engineer | Photographer
    kglad
    Community Expert
    Community Expert
    September 9, 2022

    which adobe app? animate? acrobat? something else?

    Donna Rae H.
    Participating Frequently
    September 13, 2022

    So sorry - Acrobat. 🙂