I’ve been searching for over an hour can’t seem to find a solution…
I know how to set up rules for the group, but what about for a specific field? I don’t want to create a bunch of separate groups for the same category of fields. In this case, I’m using it for SEO purposes. There are certain fields that I only want shown on the back end if the page is a child of a specific page.
Basically, I don’t want to create a bunch of separate groups…just one group for SEO fields but I want to control what fields show based on specific conditions. Make sense? Is there any way to set rules for specific fields within groups?
So far my workaround has been to create the group twice and setting rules to have them display only on the pages I want, etc. Was just hoping for a more elegant solution. Would be great if the at least the Pro version had something like that included where you can have a filter set on specific fields.
acf/prepare_field has nothing to do with displaying of values in the field, only the display of the field where it appears to allow values to be entered. This can be on the front end [acf_foem()] or in the admin.
If ACF needed to check location rules for every field the admin would never finish loading. But like I said, you can do this for specific fields based on whatever criteria you need to create.
Viewing 5 posts - 1 through 5 (of 5 total)
The topic ‘Set rules per field?’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users