These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Whats wrong with my syntax

NileJackal
Registered: Jan 13 2010
Posts: 12

This is a simple if statement set on a calculation event in the FormCalc script. I keep getting the error "Syntax Error on line one near token '=' line 22. I have done everything i can to audit this string but can't figure out what i did wrong. It is supposed to poulate a TextField with a string of text based on the slecetion from a drop down box. Please help

if ( JDETermRsn.value = "RPB" ) then
$.value = "Dissatisfied with compensation / benefits"
else if ( JDETermRsn.value = "RCC" ) then
$.value = "Dissatisfied with carreer opportunities / Accepted position with other employer / Started own business"
endif

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
;-)

if ( JDETermRsn.rawValue == "RPB" ) then$.rawValue = "Dissatisfied with compensation / benefits"else if ( JDETermRsn.rawValue == "RCC" ) then$.rawValue = "Dissatisfied with carreer opportunities / Accepted position with other employer / Started own business"endif

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

NileJackal
Registered: Jan 13 2010
Posts: 12
Thank you I always for get that validation takes the ==