Copy link to clipboard
Copied
Using Adobe Acrobat Standard 2020; I have three fields (Field-A; Field-B, Field-C) I would like the following: If Field B is 25; then Failed -A is the value found in Filed C. Help Please. Rookie here.
Copy link to clipboard
Copied
Use this as custom calculation script of "EERate" field:
var drop = this.getField("EEDrop").valueAsString;
if(drop == "17")
event.value = this.getField("A17").value;
else if(drop == "16")
event.value = this.getField("A16").value;
else if(drop == "19")
event.value = this.getField("A19").value;
else
event.value = "";
Copy link to clipboard
Copied
What should happen to "Field-A" if value is not 25?
Use this as custom calculation script of "Field-B":
if(event.value == 25)
this.getField("Field-A").value = this.getField("Field-C").value;
Copy link to clipboard
Copied
Hello I was just using that as a value. Here is teh Situation:
Field A: I want the result/value to show here
Field B: Is a dropdown with multiple numeric values to choose from
Field C: Has a value in it.
When a value is slected in Field B dropdown, tells Field A to pull value from specifc field (Field C)
Your help is truly appreciated.
Copy link to clipboard
Copied
Script will do that, just change field names to your actual field names and if you have more than one condition, add 'else if' for other conditions.
Copy link to clipboard
Copied
Thanks I am such a rookie, I have never written script before.
This is what I have:
var Field A= this.getField("B").value;
if( Value of Field B )event.value = this.getField("C").value;
It doesn’t work. I have no idea. I am sorry. Can you send me the sample script?
Thanks!
Brian Johsnon
Copy link to clipboard
Copied
So if anything is selected from dropdown, Field A = Field C?
Do you have any default value in dropdown?
Copy link to clipboard
Copied
No Default yet I will try to put one in. Here is is a picture of what I am trying to do.
Copy link to clipboard
Copied
Use this as custom calculation script of "EERate" field:
var drop = this.getField("EEDrop").valueAsString;
if(drop == "17")
event.value = this.getField("A17").value;
else if(drop == "16")
event.value = this.getField("A16").value;
else if(drop == "19")
event.value = this.getField("A19").value;
else
event.value = "";
Copy link to clipboard
Copied
It Worked!
You are awesome! Please have a great day and Thank you very much!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now