Reply to: Macro to search through attribute valueAugust 1, 2017 at 11:24 pm
It sounds like your XFT form is VBScript. To use my example unmodified you'd need to use it in a JScript XFT form. The scripting language is declared when you first create the form in the XFT editor (you can choose from any of the script engines installed on your machine).
XFT forms (unlike MCR files) can only include one scripting language.
If you are comfortable with JScript then you may wish to recreate your form, selecting JScript as the language. If you prefer VBScript then the code would need to be adjusted from JScript to VBScript.