Bruce,
As a workaround, I have created a JS function to change the src attribute of the image on the page. The code is as follows:
function setObverseImage() {
$("#obvImage").attr("src", "/uploads/"+$("#CC__Coin_Image_Name_Obv").val());
}
I call this function from a "tab change" embed and from the onChange template field for the CC:Coin_Image_Name_Obv field, which contains the file name of the image. So, on an Insert, the image control shows the correct image. On a Change, when the form opens, I select tab 3 which has the Image control, and the image displays as expected. However, if I close/cancel/save the form, then immediately select a different record, the form opens on Tab 3 and has the old image. I must select another tab (which fires the function in the tab change embed), then go back to tab 3 to see the newer image.
I thought this was due to caching the image in the browser, so I added a parameter and a time stamp to the URL of the image. For example:
"/uploads/gold.jpg?c=1" or "/uploads/gold.jpg?timestamp=87854945775"
The problem remains so I don't think it is a caching issue. I think it is a form refresh issue. When I select a new record, all fields have the newer data, including the field with the image file name. It just the form opens to the third tab with the old image displayed. I need a way to fire my JS function to set the proper image. I don't want to tab to another page or click on the image. It should display automatically.
I have sent many examples and have attached a few here previously. I can send more if needed, but I'm just spinning my wheels now.
Thanks,
Jeff