# setImage URL Error

**URL:** <https://forum.code.org/t/setimage-url-error/36157>\
**Category:** Coding and Debugging Help\
**Created:** [April 12, 2022, 4:31pm UTC](https://forum.code.org/t/setimage-url-error/36157 "2022-04-12T16:31:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![james.r.hock](https://avatars.discourse-cdn.com/v4/letter/j/ed8c4c/32.png) [@james.r.hock](https://forum.code.org/u/james.r.hock)\
**Post date:** [April 12, 2022, 4:31pm UTC](https://forum.code.org/t/setimage-url-error/36157/1 "2022-04-12T16:31:29Z")

</div>

Link to the project or level: [App Lab - Code.org](https://studio.code.org/projects/applab/qVRfmvvy_iTX6vhJzlxblPpn2WZJMMz4XL5WFmXUz4Y)  
What I expect to happen:  
An image to appear based on the “type of scam” selected in the drop down menu. Relevant text is supposed to also appear on the subsequent screen.  
\*\*What actually happens: An image URL error occurs on the relevant “setImage” line: “Error: The setImageURL() id parameter refers to an id (”") which is already being used outside of App Lab. Please use a different id."  
\*\*What I’ve tried: Student has tried use both URLs for images as well as .jpg/.png files. He has tried to change ID names as well and nothing seems to be working.

---

<div class="post-metadata">

**Author:** ![letti42](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@letti42](https://forum.code.org/u/letti42)\
**Post date:** [April 13, 2022, 2:08pm UTC](https://forum.code.org/t/setimage-url-error/36157/2 "2022-04-13T14:08:29Z")

</div>

For `setImageURL()` the first parameter needs to be an ID - generally referencing an image element. I’m not sure if you have one set up, but the first parameter cannot be the “image” variable.
