data type - HTML image Problem

I have defined a field with data type = ‘HTML image’ and I can define the image name as, for example, grp__NM__A.png. It works perfectly.

My problem is I want to have the image to be displayed dynamically. For example, sometime I would like to display grp__NM__B.png, sometimes I would like to display grp__NM__C.png …

I have tried to set the image with the command

{image1}=‘grp__NM__B.png’ ;

but the form still display grp__NM__A.png.

It seemed that I cannot change the image name within the form.
Can anyone tell me how to do this?
Thanks a lot!

Re: data type - HTML image Problem

if u manually clear your browser cache, does the image change?

Re: data type - HTML image Problem

After I manually clear the browser cache, the image still does not change.

Re: data type - HTML image Problem

What event are you using in the app to make the change? perhaps it is not triggering as you want it to.

Put this php code anywhere as a debug. you should get a popup when it runs…

echo “<script>alert(‘here I am’);</script>”;

That way you can be sure something is happening. You could also make a global variable and change it and look at that value. Maybe computing image to use abd loading it into a global variable, then using that on your app display? just some ideas. Stick with it…it will work :slight_smile:
Jamie