Create form field programmatically on usertask

Found this old forum post: Add extension elements with any type (i.e. camunda:inputOutput)

This is what I was looking for.