add objectpicker through custom tasks
Is it possible to add controls like objectpicker/userpicker/etc. programmatically through a custom task? I've only seen them used in the custom form .js file, where you define them in the columnFieldLists. But I would like to add them through custom tasks (for example a task that opens a window with some objectpicker fields to fill in), but can't figure out if and how you could do it.
Thanks in advance.