Support

Account

Home Forums Backend Issues (wp-admin) Field Object shows load_field as working, but it doesn't render that way Reply To: Field Object shows load_field as working, but it doesn't render that way

  • Hi John,

    Thanks for reaching out and providing me some very useful information. This does work for radio button fields, I suspect it would also work for dropdowns and perhaps checkboxes. It does not work for the button group option even though its technically a radio button. I’m guessing the styling or jquery for the button group does not follow the acf disabled protocol at all or correctly.

    I’m just going to switch to radio button. I only managed to get it to work by passing all the values as true in the disabled array. Just marketing a radio button field as disabled = 1 or disabled = true does not visually disable the whole field. Programmatically it seems the field object returns values as though it is disabled, but it doesn’t translate visually.

    However, for radio button fields this code you’ve provided does work if you add all the values to it, essentially disabling all options.

    Thank You