Home › Forums › Backend Issues (wp-admin) › Set File Upload path to be editable › Reply To: Set File Upload path to be editable
Do you mean the setting up the fields or the outputting of the field on the front end?
I don’t think that there is any in-depth explanation of conditional logic. You create a radio field and give it any number of values that you want. When you create another field you can then turn on conditional logic for that field. You then select the radio for under “show this field if” and set the value for that field that makes the new field appear.
In the code you would do something like
if (get_field('radio_field') == 'value 1') {
// do one thing
// like show a value in another field
} elseif (get_field('radio_field') == 'value 2') {
// do something else
}
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.