Request for field class filter

I’m aware that there’s a filter for adding classes to the “wrapper” of a field, but I can’t seem to find one for individual field elements, such as inputs. My goal here is to add styling classes such as .form-control from bootstrap. Currently, I’m able to do it hacky by doing str_replace, but this causes issues with the “class” property showing twice - once for my form-control, and one for the default field sizing (medium, large, etc that’s set in the form GUI).

Thanks.

What code are you using for the str_replace?

There is currently no filter for that, so you would have to add the class with jQuery when the form is loaded, or by using the gform_get_form_filter to filter the string and add your class to the proper elements.