Home › Forums › Front-end Issues › External condition for displaying field › Reply To: External condition for displaying field
I want to show / hide the field in the frontend form based on a custom user meta.
So no conditional relationship to any other fields. I want to have some sort of php condition whether to show the field for the specific user at all in the frontend form (where users can send in posts).
Something like this (pseudo code)
if(get_user_meta('myfield') == 'myvalue'):
show_this_acf_repeater_field;
endif;
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.