Answered
I am using Acrobat Pro 9 and working in Livecycle. I created a form that asks the user to select a media type from a drop down. I want the selection to calculate the value in a numeric field that can later be summed. The formula is listed below. I get an error message "syntax error near token " on line 1 column 11. I am not a programmer just trying to help facilitate a process.
if(MEDIA1==”WBT”)then
(L1=VL1*.25)
elseif(MEDIA1==”CBT”)then
(L1=VL1*.75)
elseif(MEDIA1==”VTC”)then
(L1=VL1*.50)
elseif(MEDIA1==”f2f”)then
(L1=VL1*1.0)
ROUND(L1)
endif
Appreciate any help
Is 'L1' a field?
In what field is this calculation script located?
If it is the field 'L1' your code could be:
George Kaiser