Home › Forums › Backend Issues (wp-admin) › Disable advanced fields (files, radio..) › Reply To: Disable advanced fields (files, radio..)
A radio field can be disabled/readonly by setting it to an array of the values to be disabled
$field['disabled'] = array(
'value 1',
'value 2',
'value 3'
);
As far as I know a file field cannot be disabled or set to readonly in this way. You would probably need to add JavaScript and remove the controls that allow removing and/or adding a file.
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.