There's an easier way to do this. See attached example. If you don't like the input box you can also create an inline table in the script with the expressions and/or field names and use a listbox. See this blog post for more information about that option: Customizable Straight Table