Home Forums Backend Issues (wp-admin) List of JS hooks Reply To: List of JS hooks

  • Sure

    var imageInputOnChange = function ($input) {
        // This is the only way to check what field has been changed.
        if ($ !== 'acf[field_56d99d7de115e]') {
        // Finding the image requires DOM traversing
        var $image = $input.closest('.acf-image-uploader').find('img');
        // Do something when the uploaded image is fully loaded
        $image.on('load', imageOnLoad);
    var imageOnLoad = function (image) {
        // Do something...
    acf.add_action('change', imageInputOnChange);

    So as you can see using this hook requires some additional effort to determine which field’s value was changed. That’s why I’ve posted this request.