This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - <img src=""> tag override

aaasam - Tuesday, December 20, 2011 4:16 PM:

** RESOLVED **

I have actually resolved this, finally, on my own and wanted share how I did it in the event anyone else wishes to dynamically change images on their aras form.

In the form, create a "New HTML" property on the form.   Under the [Field Type] tab, give it a name, select HTML as the field type.  Click into the HTML Code box.  The <img src=> tag will be auto built for you.  Now, some editing needs to be performed to the <img src=> tag created.

I had to add the following properties:  id="[Field Type] name" and name="[Field Type] name".   Make sure the [Field Label] label field is blank.  You can change whatever else you want to change.

In your JS method, code the following to override the <img src=> tag property value to load from a new URL or file location:

document.getElementById("pkgImg1").src=urlHttp;

Where, pkgImg1 = the "[Field Type] name" and urlHttp = to the image URL and/or the location and filename for the image to be displayed.

-Scott