acf-builder icon indicating copy to clipboard operation
acf-builder copied to clipboard

Add filter for auto generated labels, titles.

Open christianmagill opened this issue 7 years ago • 6 comments

It would be great to have the ability to filter the auto generated labels and titles.

Often there are just a few simple changes I need to make, but they cross a wide number of fields.

christianmagill avatar May 18 '18 14:05 christianmagill

Can you give me an example? Not sure I follow.

stevep avatar May 18 '18 14:05 stevep

Sure...

I'd say there are two different ways it could be beneficial.

  • Acronyms such as CTA that should be capitalized in labels.
  • Removing namespaces from field labels.

For example I have a rather lengthy form with a few different sections.

I use a prefix at the start of the field name to indicate which section it belongs to. Currently this means I have to set a label for every field, when really all I'd need to do is remove the prefix for each.

christianmagill avatar May 18 '18 15:05 christianmagill

Ah so you're looking for a way to patch into the auto generated fields. Makes sense. I'm going to create a 2.0 wishlist label.

stevep avatar May 18 '18 15:05 stevep

Great, thanks

christianmagill avatar May 18 '18 15:05 christianmagill

Just to add another use case, I'd love to use this feature to support converting pascalCase to Pascal Case.

curtisbelt avatar Mar 24 '19 22:03 curtisbelt