Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Display image based on drop down selection.

$
0
0

I'm new to Live Cycle Designer and trying to create a form where you can select a name of an image from a drop down list and that image will appear on the page to be printed.  The images would vary in size if that matters.

 

I copy and pasted code using Microsoft Front Page and it works but not sure how to convert it to a .pdf.   Maybe it isn't even possible as I'm wondering where the images would reside??

 

Here's my Front Page code:

 

<html>
<head>
<script type='text/javascript'>
window.onload=function(){
function setImage() {
    var img = document.getElementById("image");
    img.src = this.value;
    return false;
}
document.getElementById("ImageList").onchange = setImage;
}

</script>


</head>
<body>
 
<select id="ImageList">
     <option value="images/transimage.gif">Select Image</option>
    <option value="images/image1.gif">
Image 1</option>
    <option value="images/image2.jpg">
Image 2</option>
</select>
   
<p><img id="image" src="images/transimage.gif" /></p>
 
</body>


</html>


Thanks for any help.


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>