What are the results of your code?
Have you looked at any tutorials about creating forms and calculations?
There is no result from the code, at least not what i can see.
This code is just a representation of what i belive someone with skills in Java Scripting would understand what i am looking for.
I have seen some tutorials but none explaining the syntax and how java scripting with adobe works in general, do you know where i find this information?
Any tip is helpful!
So your code should be something like this:
var a = this.getField("SelectionsList").valueAsString; if( a == "12") event.value = "1995"; if( a == "18") event.value = "2995";
Edit: fixed last line of code
I am aware of lesson#1 and 2# unfortunately i was not clear in my second sentence, sorry for that :-)
ok, so how do i then get event.value = "1995"; to populate ("formfield_1") as in my above example var c
I tried assigning it to Formfield_1, but i did not get any result, and assigning this code to SelectionList wont help since there are no reference for var c
The code I provided needs to be the custom calculation script for that
Thankyou, that worked!