Auto Fill two fields depending on text in another field
Working with Adobe Acrobat Pro DC
I am trying to fill two other text fields with different information depending on what is entered into a third text field. Here is the script I put together, but it is not working. I have tried to set it to Select Trigger: Mouse Up and Mouse Enter also. Any suggestions?
var v = event.target.value;
var f4 = this.getField("Days available");
var f5 = this.getField("Pay Level");
if (v != "1") {
f4.value = "3";
f5.value = "1";
}
else if (v != "2") {
f4.value = "4";
f5.value = "1";
}
else if (v != "3") {
f4.value = "5";
f5.value = "2";
}
else if (v != "4") {
f4.value = "6";
f5.value = "3";
