function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
mnapolimnapoli 

Ability to control the link generated by an outputfield?

I have a simple outputfield that is pointing to the CreatedById field on the Task object. Everything works fine as it renders the name of the user that the CreatedById belongs to and displays it as a link to that user's page. However, that link navigates the main window. I want my users to be able to click on that link but have it open in a new window. Do we have any way to control the target window of that link that is generated by the outputfield? Any help is greatly appreciated.

ReidCReidC

Follow.  I'm curious about the answer.

When I look at the outputField docs I don't see anything like "if this output field results in a link use this target" which I'm guessing is what you would need, right?

I suspect for this field you'd have to do something like outputLink which is of course always a link and has a target attribute.  

 

Would love to hear a better idea.

NzgonNzgon

Output Link is another option but if you do training and teach your users to clik on scroll wheel instead left click it will open new window for them. 

 

Nash