Hi all,
We have a custom section, which contains a contact field (label = Member): http://prntscr.com/luc7de
In the list view, this contact is clickable (clicking the contact name will redirect user to the contact page itself)
Now we want to make this field not clickable for specific user role. They are allowed to see the contact name, but thay are not allowed to click to the contact page where all info can be seen.
I tried this in the 'UsrReservations1Section'-page behind the 'onEntityInitialized'-method:
$("a").each(function() {
var linkId = $(this).attr("id");
var href = $(this).attr("href");
var n = href.indexOf("ContactPage");
if (n > 0) {
document.getElementById(linkId).style.cursor = "default";
document.getElementById(linkId).style.pointerEvents = "none";
document.getElementById(linkId).style.color = "black";
}
});
But this does not work...
Any ideas or advice would be appreciated!
Kind regards,
Vincent