Radio field Choices Callback Function no longer working

Support Meta Box AIO Radio field Choices Callback Function no longer working

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #49321
    Macky McCormackMacky McCormack
    Participant

    Hi,

    I set up a callback function to populate a radio field choices which has worked fine for the past 3 years. Now the callback is not populating the choices (choices are blank). Noting has been changed on this site in relation to this set-up.

    Things I've tried:

    - Updated plugins to latest versions
    - Switched on wp debug and checked debug log - no relating errors
    - Checked that callback function is available - it is.

    Field:
    https://www.dropbox.com/scl/fi/jlxspaqdqxnz8gjb3c1ld/radiofield121125.png?rlkey=8d494xp2u3hzza2jar5dmjaa9&dl=0

    Callback:
    https://www.dropbox.com/scl/fi/4yspra43actnjphu6bigo/callback121125.png?rlkey=c8sceh8z3ht9rzcnc14ub0pgr&dl=0

    Happy to provide login details but the link to your form isnt working.

    Thanks,

    Macky

    `

    #49325
    PeterPeter
    Moderator

    Hello Macky,

    Thanks for reaching out.

    Can you please put the callback function in the theme file functions.php, re-save the field group and see if it helps?

    #49326
    Macky McCormackMacky McCormack
    Participant

    Hey Peter,

    I have done as you ask and deactivated the script in Advanced Scripts, but the issue remains.

    #49328
    Macky McCormackMacky McCormack
    Participant

    EDIT - I didn't resave the field group before my last post. When I try to do so it acts as if one of the fields is required...

    https://www.dropbox.com/scl/fi/evmlnu6eqz12db344elx9/fieldgrouperror131125.png?rlkey=rj2mm6vx94uu3ieb1jenwkfiu&dl=0

    #49331
    PeterPeter
    Moderator

    Hello,

    Regarding the issue with the required field, it could be a Text field. Please try to delete this field and re-add it without the Required option.

    If it still doesn't work, can you please share your site admin account by submitting this contact form?
    https://metabox.io/contact/

    I will take a closer look.

    #49333
    Macky McCormackMacky McCormack
    Participant

    Hi Peter,

    Regarding the text field - the screenshot is from the metabox field group settings page. The field needs to be required when the post edit form is rendered, but NOT on the metabox field group edit screen.

    I will provide admin login so you can take a look. The metabox field group in question is wp-admin/post.php?post=9485&action=edit

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.