Expand my Community achievements bar.

Can't Find My Variable

Avatar

Level 2

I've added a variable to Form 1 and renamed it InstanceCnt.  The variable is: var oDetailPageRef = null;

However, when I try to reference it in a script, by typing:

InstanceCnt.oDetailPageRef

it can't be found.  Am I missing something?  Thanks!

1 Reply

Avatar

Level 10

Hi,

Did you add the variable via the Form Properties dialog?  If so you don't need the var keyword, it will already be defined.  Using var in this way will hide the form variable.  Also you should reference it using InstanceCnt.value.

Regards

Bruce