Hi Todd,
can you replace SBO_Application.Forms.GetForm(pVal.FormType, pVal.FormTypeCount) with SBO_Application.Forms.Item(pVal.FormUID) like Beni suggested. The FormTypeCount value will only be correct if there is only one instance of this form.
regards,
Maik