How to open incident form on a new tab in service portal under my incidents?

Adwitiya Kausha
Tera Contributor

When a user goes to service portal and clicks on 'My Incidents' and opens any incident, the form for the end user is displayed. There was requirement to add a link to the incident number on the right side column.find_real_file.png

I have updated the script and created a link on that incident number but when the incident records opens up, it opens on the same tab. The requirement is that it needs to be opened on a new tab.

The following code was added to HTML:

find_real_file.png

The following change was made to client script:

find_real_file.png

It is working as expected and is opening the incident record as required but it needs to be opened on a new tab.

1 ACCEPTED SOLUTION

Hi @Adwitiya Kaushal,

Update your code as per below code in Client script

url=$scope.data.table+".do?sys_id="+$scope.data.sys_id

    window.open(url,'_blank');

Please mark my answer correct and helpful if this resolves your issue.

Regards,

Palak

View solution in original post

5 REPLIES 5

Palak Gupta
Tera Guru
Tera Guru

Hi there!

Are you still looking for an answer for this query?

Regards,

Palak

Hi Pala,

Yes, I am still looking for an answer to this query.

Regards

Adwitiya

Hi @Adwitiya Kaushal,

Update your code as per below code in Client script

url=$scope.data.table+".do?sys_id="+$scope.data.sys_id

    window.open(url,'_blank');

Please mark my answer correct and helpful if this resolves your issue.

Regards,

Palak

Thanks Palak. This solution worked.