Apply flags to input type