How to add hyperlink into info message
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
el 12-04-2023 07:36 AM
a hyperlink that redirects you to incident list view can be defined in this business rule. link is not getting the incidents
Showing below one
I need a incident number for example show below one
Please help any one . and this is dev instance that's the region i given the dev url but move this one to prod it showing error because prod url is different which propriety have to use
Please share me
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
12-04-2023 07:40 AM - editado 12-04-2023 07:50 AM
Hello @vinod6
Modify your 3rd line with mine :-
var link = "<a href='https://dev189754.service-now.com/now/nav/incident_list.do'>" + current.number +"</a>"
Plz mark my solution as Accept, If you find it helpful.
Regards,
Samaksh
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
12-04-2023 07:44 AM - editado 12-04-2023 07:45 AM
Hi @vinod6 ,
It would be best practise not to hard code the URL so that if you code moves to another instance, for example from a development environment to the test environment then it will still work.
The below code on line 3 would be suitable
var link = "<a href='/now/nav/incident_list.do'>" + current.number + "</a>"
