Use data atribute instead css class and add it to custom form types