Add possibility to set the form options on type and value