Copy link to clipboard
Copied
If BoxA says "123 Seasame St" and BoxB also says "123 Seasame St", I need BoxC to say, "*TO OURSELVES*" Is there a script to do this?
Copy link to clipboard
Copied
Yes, use a calculation script on "BoxC".
Like this:
if(this.getField("BoxA").value == this.getField("BoxB").value)
event.value = "*TO OURSELVES*";
else
event.value = "";
Note that if BoxA and BoxB do not match, that the value is made blank.
There may also be an additional issue. The text in both may be equivalent, but not equal. For example, if there are extra spaces in one of the fields. If this is the case, then some more code will be necessary to clean up the field values before comparing.
Copy link to clipboard
Copied
Custom calculation script in BoxC:
if(this.getField("BoxA").value=="123 Seasame st" && this.getField("BoxB").value=="123 Seasame St")
{event.value="*TO OURSELVES*"}
Copy link to clipboard
Copied
Yes, use a calculation script on "BoxC".
Like this:
if(this.getField("BoxA").value == this.getField("BoxB").value)
event.value = "*TO OURSELVES*";
else
event.value = "";
Note that if BoxA and BoxB do not match, that the value is made blank.
There may also be an additional issue. The text in both may be equivalent, but not equal. For example, if there are extra spaces in one of the fields. If this is the case, then some more code will be necessary to clean up the field values before comparing.
Copy link to clipboard
Copied
Custom calculation script in BoxC:
if(this.getField("BoxA").value=="123 Seasame st" && this.getField("BoxB").value=="123 Seasame St")
{event.value="*TO OURSELVES*"}
Find more inspiration, events, and resources on the new Adobe Community
Explore Now