Refer to Images Using HTML tags
Images can be referenced using the HTML tag <img> in a label control. The images being referred to can be:
- located on a website, or
- stored in a policy model project as a custom file. To do this you use the ${resources-root} substitution in the HTML which will be automatically expanded in the interview to the current root path to the resources directory.
Note: Where possible, images should be added directly to screens rather than referred to using HTML with custom files.
You can also use text substitution in the URL for the image in the HTML tag. This enables a different image to be shown depending on the value of the substituted attribute. Note that because of the dynamic nature of the control, no image will be shown in the screen layout view in Policy Modeling.
To refer to an image using HTML:
- On the Interview tab in Policy Modeling, open the screen where you want to include the image.
- Add a Label Control.
- Select the control in the screen layout view.
- Click the text once and change it to include the necessary HTML tags. Note that to refer to an image in the project:
- use the ${resources-root} substitution in the HTML which will be automatically expanded in the interview to the current root path to the resources directory.
- add your image to the /interview-theme/resources/images folder in the project directory. (This folder is created when you click the Custom Files button in the Styles dialog box on the Interview tab.)
- Press Enter. The screen layout view is updated to show the image as it will appear in an interview.

In the Business License Wizard policy model, an image (HandCursor.jpg) located in BusinessLicenseWizard\interview-theme\resources\images is referenced in the HTML of a label control:
In an interview this is rendered as:

To dynamically show a different product logo image stored in the project, you could put this in a label control:
where the value of the substituting text attribute product_code is inferred using rules. For example:
the product code | |
---|---|
"OSvC" |
the Oracle product = "Oracle Service" |
"CPQ" |
the Oracle product = "Oracle Configure, Price and Quote Cloud" |
"ERP" |
the Oracle product = "Oracle Enterprise Resource Planning Cloud" |
"Oracle" | otherwise |
In an interview, if the Oracle product is Oracle Service, then the image file OSvC.png will be displayed on the screen:
and so on.

To dynamically show a different dog image hosted online, you could put this in a label control:
where the value of the substituting text attribute inferred_image_URL is inferred using rules. For example:
the inferred image URL | |
---|---|
"http://www.<your image website URL 1>/goldenretriever.jpg" |
the dog is a golden retriever |
"http://www.<your image website URL 2>/beagle.jpg" |
the dog is a beagle |
"http://www.<your image website URL 3>/Yorkshireterrier.jpg" |
the dog is a Yorkshire terrier |
"http://www.<your image website URL 4>/puppy.jpg" |
otherwise |
Or if all of your images are at the same location, you could use a rule like this:
the inferred image URL = the concatenation of "http://www.<your image website URL>/" + the text to substitute in the image URL
the text to substitute in the image URL | |
---|---|
"goldenretriever.jpg" |
the dog is a golden retriever |
"beagle.jpg" |
the dog is a beagle |
"Yorkshireterrier.jpg" |
the dog is a Yorkshire terrier |
"puppy.jpg" |
otherwise |
In an interview, if the dog is a beagle then the beagle.jpg will be displayed on the screen. If the dog is a Yorkshire terrier then the Yorkshireterrier.jpg will be displayed on screen, and so on.