How can I replace or add a Retina icon image ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2019 06:42 AM
How can I add a custom button/icon image for display on a form ? The retina list has many button images to select from but my customer wants a specific image. If I add customer_logo.png to System UI -> Images and then replace <class="btn btn-default icon-link"> with <class="btn btn-default customer_logo"> in the UI Macro I get an empty button (no image). The sample below depicts the desired outcome.
- Labels:
-
User Interface (UI)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2019 07:35 AM
Typically the image is defined in the decoration tag, not the class attribute. This example code comes right out of the UI macro user_show_incidents. Somewhere in your code, you should have an image attribute like this.
<g:reference_decoration id="${jvar_n}" field="${ref}"
onclick="showRelatedList('${ref}'); "
title="${gs.getMessage('Show related incidents')}" image="images/icons/tasks.gifx" icon="icon-tree-right"/>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2019 08:58 AM
Thank you, but ...
How do I replace icon-tree-right with a PNG file I have on my desktop ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2019 10:40 AM
Never done this, but i think you got to load your image on system ui --> image table
regards

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2019 06:13 AM
You do need to upload your image in System UI> Images. You can then reference it from just about anywhere with the link provided on that record (e.g. images/my_image.png)