Home › Forums › Feature Requests › Read-Only Field › Reply To: Read-Only Field
Basically, it’s not that difficult to understand.
We differentiate here between deactivated fields for inputs, radio buttons, etc. – this information is extremely important!!! Because there are different behaviors for the different fields.
my problem was the radio buttons. if they are disabled via $field[‘disabled’], then they simply accept the value that you get by definition in the ACF configuration. No code, can then change their value.
My solution for the radio buttons is:
Find the radio button from the group that is not checked and disable it.
The values are overwritten by a mail class and cannot be set by the user.
It indicates whether a confirmation email has been sent or not.
$('[data-name="order_send_mail_on_order_to_admin"]').find(':radio:not(:checked)').prop('disabled', true);
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.