Home › Forums › Front-end Issues › Readonly radio field › Reply To: Readonly radio field
I just looked at the ACF code and it appears it allows more granular control for ratio fields, at least that’s the way it appears.
function my_acf_prepare_field( $field ) {
$field['disabled'] = array(
// set each value option you want to disable
'value1',
'value2',
// etc
);
return $field;
}
add_filter('acf/prepare_field', 'my_acf_prepare_field');
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.