LiveCycle ES4: FormCalc or Java Script-Trying to create a conditional caption script based on other object value


hello all,

 

i need help. think issue syntax first time have ever tried make conditional caption. trying in formcalc little more familiar syntax java willing explore both.

 

the desired result:

i have set of radio buttons form user should select identify type of hire trying submit. based on radio button selection, caption on date field needs read different (to cut down on space usage on form).

 

information:

the radio buttons value bound 1="rehire", 2="temp perm" , 3="new hire" in radio button group called hiretype. date field standard date field size 9 arial 9 titled startdate.

 

important note: not using kind of outside data source (xml or otherwise) populate information. of subject matter have been able find conditional captions references this. form designing internal unto itself.

 

the formcalc script tried on exit event hiretype radio button group:

form1.#subform[0].hiretype::exit - (formcalc, client)

if (hiretype.rawvalue=="1")then

startdate.caption.value="original hire date"

else

startdate.caption.value="temp start date"

endif

 

the result:

nothing happens. pretty sure solution starting me right in face, first time have tried conditional script except raw value of field or drop down list selection.

 

any appreciated! again willing explore java or formcalc solutions.

 

thanks in advance!

-t



More discussions in LiveCycle Forms


adobe

Comments

Popular posts from this blog

Illustrator CS6 Ocurrío un error E/S en el archivo.

Why is os_ViewContainer running?

Animate - problem with duplicating scripts after loop