Home › Forums › General Issues › Hiding custom fields using conditional logic? › Reply To: Hiding custom fields using conditional logic?
Hi @davidr
If you don’t mind the link input field visible on the backend, you can always use the True/False field. With that field, you can check if the checkbox is checked or not like this:
if( get_field('true_false_field_name', $id) )
{
echo get_field('biography_field_name', $id);
}
I hope this helps 🙂
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.