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

Add function that allows to add style to a field for a input field.

A24group/Triage#1226