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);