Avatar

Level 10

Hi Cathy,

Before we get to joing the two variables, I think that it is important to declare hte variables first.

The JavaScript Console is very powerful tool for debugging. You can access when previewing your form in LC Designer or when you open your form in Acrobat.

The console is not available in Reader.

It will show up errors as you interact with your form. This will give you some direction to resolving the issue back in LC Designer.

Javascript Console.png

If you can't get Control+J to work, then you could use this line after the variable is declared:

xfa.host.messageBox(myVA); 

If you have a look at page 3 of the SOM Expression form, you will see a shortcut to referencing objects (also in video, sorry about the audio).

Using the Control+Click to reference objects will help, as LC Designer will resolve the node of the object if necessary. This would happen if there are unnamed objects/subforms, there are multiple objects with the same name; or if you have named an object using a reserved word.

So, I would be inclined to get this sorted first and then concentrate on merging the two variables. For example, is Row1 set to repeat?

Niall