I have a requirement to add hyperlinks to record name only for certain user with specific permission set.
html file:
<a data-record-id={f.Id} onclick={handleClick} target="_blank"> {f.Name}</a>
js file:
@wire(getList)
listresults;
handleClick (event) {
this[NavigationMixin.Navigate]({
type: 'standard__recordPage',
attributes: {
recordId: event.target.dataset.recordId,
actionName: 'view'
}
});
}