diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/legacy/SampleLinksWidget.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/legacy/SampleLinksWidget.js
index 29f058b4f161e25d8c8642b9bbb4b6d9998b5210..ad59e82beb37b9e1b3018e0f097d167aa0b87cc7 100644
--- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/legacy/SampleLinksWidget.js
+++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/legacy/SampleLinksWidget.js
@@ -439,7 +439,12 @@ function SampleLinksWidget(containerId, profile, serverFacade, title, sampleType
 			
 			var info = $("<span>");
 			
-			var codeLink = sampleToAdd.code;
+			var displayNameAsCode = sampleToAdd.code;
+			if(sampleToAdd.properties) {
+				displayNameAsCode = sampleToAdd.properties[profile.propertyReplacingCode];
+			}
+			
+			var codeLink = displayNameAsCode;
 			if(this.isDisabled) {
 				var style = "";
 				var notFound = "";
@@ -449,7 +454,7 @@ function SampleLinksWidget(containerId, profile, serverFacade, title, sampleType
 				}
 				
 				var href = Util.getURLFor(mainController.sideMenu.getCurrentNodeId(), "showViewSamplePageFromPermId", sampleToAdd.permId);
-				codeLink = $("<a>", { "style" : style, "href" : href, "class" : "browser-compatible-javascript-link" }).append(sampleToAdd.code + notFound);
+				codeLink = $("<a>", { "style" : style, "href" : href, "class" : "browser-compatible-javascript-link" }).append(displayNameAsCode + notFound);
 				
 				codeLink.click(function() {
 					mainController.changeView("showViewSamplePageFromPermId", sampleToAdd.permId);