Script to set presence of a subform based on a field's value not working

Avatar

Avatar

Dave_Erho

Avatar

Dave_Erho

Dave_Erho

20-12-2012

I am setting up a type of evaluation form that needs to have a subform appear at the bottom whenever the evaluation fails. The subform contains text that will describe what the person will need to do for failing the evaluation.

Right now, I have the form set up to run a script whenever the "pass/fail" box changes. The script looks for the value of the pass/fail box and sets the presence of the end subform to visible if the pass/fail box text says "Fail".

For some reason though, the script is not reading the value of the pass/fail box. I can't figure out where I am going wrong.

Can send the form to whoever wants to take a quick look at it. Trying to find a way to make it available online...

- Using LiveCycle Designer ES v8.2.1...

View Entire Topic

Avatar

Avatar

Francis_Manly-E

Avatar

Francis_Manly-E

Francis_Manly-E

20-12-2012

Try commenting out failCheck.boxView() on the scoreVal calculate event and

add it to the DebitVal calculate event.

DebitVal::calculate - (JavaScript, client)

failCheck.boxView();

That should work but will make the type field protected.