Expand my Community achievements bar.

Get URL of an image field object at runtime

Avatar

Former Community Member
Im using an image field object to add a picture to a dynamic PDF Form at run time. In a text field, I'd like to show the URL of this picture. Can someone tell me, how I get this URL programmatically.
4 Replies

Avatar

Former Community Member
You would use the following in Javascript:



TextField1.rawValue = ImageField1.value.image.href;

Avatar

Former Community Member
I tried this already, but it is working only as long as the URL is set over a script like ImageField1.value.image.href = tTextField2.rawValue. After I change the picture at run time by clicking on the Image Field and selection a File in the File Browser the href attribute is empty.

Avatar

Former Community Member
Sorry misunderstood your original query. I see what you mean about the href always being empty when you try and read it. It looks like it just stores the content in the data and not the href - doesn't matter if you embed it or not. The specification says it is a Read/Write value. I probably think this is a bug, maybe check with Adobe support and see if there is anything you can do.

Avatar

Former Community Member
Did someone find a solution for this problem??



I'm having some trouble on this issue, too.



Thanks in advance!