Support

Account

Home Forums Feature Requests acf_form generated class for form name Reply To: acf_form generated class for form name

  • I see why those are there and it makes sense. But in my case, I have several different field groups with fields that have the same name and I’m styling them all the same way. In this example, they each require a physical address.

    If I could write: “.acf-field-name-city” and style all of my “city” fields across all of my forms at once, that would be great. It also makes my CSS much more readable, and applies the style to additional forms I might make in the future.

    I realize I could specifically add a class to the field data, but that’s an extra step and I’m duplicating data I’ve already entered.

    As for the field name changing: sure it could change, but that also means changing the PHP code supporting it. (I’m asking for the name to be output here, not the label.)