I haven’t tried that yet, but I do want to clarify that my code in the initial post works on repeater fields. If someone knows they will not use a certain field on their site, they can delete that line. The main goal is just to ensure that the function doesn’t get run on a repeater itself.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users