Add function that allows to add style to a field for a input field

#1226