Expand my Community achievements bar.

imageField.value.image.href?

Avatar

Former Community Member
What method can I use to allow the user to change the value of the URL property of an image field from one URL to another via a drop down?



I have a drop down that uses a JS if/then to change the value of the image field URL. However, when testing the form, making a selection in the drop down does not change the URL of the image field. I've used drop downs with JS to change other properties of an image field (such as presence.)



Is imageField.value.image.href the proper way to identify the URL property?



I've tried asking this question several different ways but still no indication as to whether or not this is even possible with LiveCycle.
22 Replies

Avatar

Former Community Member
Hi i have same problem as what Chris had with update of reader!!

I have an image field which is filled with;

imagefield.value.image.href = "file://..."

It works when i view my form with reader version 7.0 and 7.0.9

Both the static as well the dynamic forms types working good with this version.

When i have reader version 8.0 and higer it doesnt work in both types forms! It works only when form is static but it doesnt work when form is dynamic. Another probleem is when i try to switch via a button - click from one image to another it doesnt work. This all is working in lower version 7.0. to 7.0.9

does someone knows why it doesnt work in higer version of reader? is there any patch to fix this problem? so yes which?

Thanks

tmim

Avatar

Former Community Member
Hi, I'm having an issue with dynamically generating the href for an Imagefield.



If I hard code the url in, the image appears, but when I build the image using a string and data from a text field, the image doesn't show.



When i email the xml data from the form, the href for both fields is the same.



The code I am using is,



var img = concat("http://website/logos/",form1[0].UT_870_Logo);

ImageField6.value.image.href = "http://website/logos/Logo.tif";

ImageField6.access = "readOnly";

ImageField5.value.#image.href = img;



Is what I am trying to do possible.



Thanks



Mark