Add ability to have a sanitised version of the label as a class on the field. Same as for Energist.
@neilberry001 you asked me to put this in the ticket
/**
* Append the form label to the class for all forms
*/
function tanlinell_custom_field_class ( $classes, $field, $form ) {
$classes .= " " . sanitize_title($field['label']);
return $classes;
}
add_action( 'gform_field_css_class', 'tanlinell_custom_field_class', 10, 3 );
Add ability to have a sanitised version of the label as a class on the field. Same as for Energist.
@neilberry001 you asked me to put this in the ticket