Added setForm functionality based on categories for parameters