Expand my Community achievements bar.

Display Image based on bound data field

Avatar

Former Community Member

I'm trying to design a form in Designer ES2 which has an Image Field bound to some data passed into the form when compiled (using Output ES2).  The form needs to display the appropriate image from the repository and so have tried the following in the initialise function of the form:

myImageField.value.image.href = "\path\to\image\" + fieldName.rawValue + ".jpg";

The path is correct and the rawValue retrieved from the hidden field (bound to the relevant element of my dataconnection is being set correctly).  When previewing the form however the image is not displayed.
Anyone know how this can be done?
0 Replies