Home › Forums › Front-end Issues › Conditional Statements in frontend ACF Form › Reply To: Conditional Statements in frontend ACF Form
It seems that you set the location rules instead of the conditional logic. The location rule you have will only show when the post is set to a certain category. It means you need to publish it first to make it work on the front end.
If you want to hide certain fields for a certain condition, conditional logic is the right choice. But the fields need to be in one field group. You can create a dummy category select field in the field group and then set the conditional logic for this select field. I’ve attached the example for you.
Also, please set your post to private it you include credentials in it.
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.