Thanks, to both of you for your quick response. I tried using param1.name and the app.alert now correctly displays 'Page20' as the value of param1, and 'Page20[1]' for x. However, the code is still failing at the xfa.resolveNode part. Here is my entire code to check if I've got anything else missing...