Support

Account

Home Forums Front-end Issues Updating Image Filed thumbnail after changing Value from JS

Unread

Updating Image Filed thumbnail after changing Value from JS

  • So I am currently working on a way to implement a custom image selector for a website to bypass WordPress media library , so far I managed to implement a repeater field with a button and an image field , on the press of the button I open a modal with the image options , the user chooses the image then on confirm the associated Image field value is changed to the new image ID value , this all works correctly except the thumbnail of the image field does not update(until I save the form) and I cannot find any reference as to how to do this. Funny thing is my dynamic render renders the new image correctly when closing the modal , but in the modal itself the image field keeps the same thumbnail from before the value change until the form is saved (and I imagine all fields are refreshed). I would really appreciate any input to solve this blocking point.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.