How do I write an "if/then" statement for java script my adobe dc form? I am creating a performance review fill-able form, and have one column that allows then end user to select a performance ranking of values 1 - 5. If a "1" is selected in the first column, I want the text "Below Expectations" to display in the second column, if a 2 is selected in the first column, I want the text "Needs Development" to display in the second column. I know there is a way to write this but I do not know how. Please help .
As the custom calculation script of the second field you can enter something like this:
var v = this.getField("Field1").valueAsString; if (v=="1") event.value = "Below Expectations"; else if (v=="2") event.value = "Needs Development"; // etc. else event.value = "";