Home › Forums › ACF PRO › Pre-populate ACF image field in front-end form with external image URL › Reply To: Pre-populate ACF image field in front-end form with external image URL
You would need to build custom JavaScript to do this. The image field is actually set to the attachment ID of the image, so the uploading of the image happens before the image is set in the image field. I have an example of dynamically populating an image field here https://github.com/Hube2/acf-dynamic-ajax-select-example/tree/master/dynamic-fields-on-relationship
And this does not take into consideration the upload field used for people that are not logged in or do not have access to the media library. This upload works through a different mechanism.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.