Home › Forums › ACF PRO › Dynamically restrict media modal attachments › Reply To: Dynamically restrict media modal attachments
Hi @verde
I’m afraid this is not possible. That’s because you want to get the data before it’s saved in the database. That means that you need to use AJAX to post and get the new data. But the image field has its own AJAX to show the media library modal window and post the required data.
If you can pass the current row data along with the image field AJAX, then you can do what you after. But to do that, you need to modify the core files.
I hope this makes sense 🙂
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.