You must also set the InputParameter property of the form to reference the function supplying the variable (in this example ...