Support

Account

Home Forums ACF PRO acf_form() and images

Solved

acf_form() and images

  • I just found out about this hidden gem of a function, and I’ve ran into the first issue I can’t seem to figure out.

    I have a form working great, but one of the fields on the options page is an image (set to image URL)

    I can see the image in the form, however when I hover over it to use the controls (edit and remove), nothing happens when I click them.

    Any thoughts?

  • I’m sorry I forgot to include the error when I click on one.

    Uncaught TypeError: a.ajax is not a function
        at Object.<anonymous> (wp-util.min.js?ver=4.9.8:1)
        at Function.Deferred (jquery-3.3.1.slim.min.js:2)
        at Function.send [as ajax] (wp-util.min.js?ver=4.9.8:1)
        at n.sync (media-models.min.js?ver=4.9.8:1)
        at n.fetch (backbone.min.js?ver=1.2.3:1)
        at n.more (media-models.min.js?ver=4.9.8:1)
        at n.more (media-models.min.js?ver=4.9.8:1)
        at n.prepare (media-views.min.js?ver=4.9.8:3)
        at n.render (wp-backbone.min.js?ver=4.9.8:1)
        at wp.Backbone.Subviews.<anonymous> (wp-backbone.min.js?ver=4.9.8:1)
  • Appears to have been an issue with jQuery – got it enqueued properly and no more issue. 🙂

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘acf_form() and images’ is closed to new replies.