- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
I'm trying to dynamically set an image field on my LiveCycle PDF form. On my form onReady function I have some Javascript code that is executing. For some reason, if I explicity set my image field to a string value, everything works. However, if I try to dynamically set it using a value from a text input, it doesn't work.
Any ideas? I've used app.alert to make sure that the value in the textfield is correct.
//Try to set image field to a string value. [WORKS]
swatch1.image.value.image.href = "http://localhost/qs/images/waterswatch.png";
//Alert Value of text field (Result: http://localhost/qs/images/waterswatch.png )
app.alert(swatch1.imgPath.rawValue)
//Try to set image field dynamically. [DOESNT WORK]
swatch1.image.value.image.href = swatch1.imgPath.rawValue;
Views
Replies
Total Likes