URL Type field is not clickable on Service Portal.

HrishabhKumar
Kilo Sage

I've created a URL Type field on cmdb_ci table named "Modify Ownership".

On Native UI it is clickable in the list view, and routes you to particular url once clicked.

HrishabhKumar_0-1754290006217.png

 

I've created a UI Page, where I am referencing cmdb_ci table using Data Table widget. But the URL field is not clickable here. I want it to be clickable here as well.

HrishabhKumar_1-1754290136134.png

 

 

1 ACCEPTED SOLUTION

Hi @Ankur Bawiskar 

Thanks for your response, your response did help me in a certain direction though. I had to create a new widget and customize it accordingly., but not through click events rather I had to glide the url from the reference tables and render it on the screen using html elements.

 

I've marked you answer helpful. 

Thanks.

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@HrishabhKumar 

by default data table widget doesn't show URL field as clickable.

Approaches

1) have custom widget and add data table widget in that, in your custom widget listen for the click event and implement logic to redirect or open in new tab

OR
2) have your own custom widget instead of data table and have logic of click in that.

check this link

Clickable URL field in portal list view 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@HrishabhKumar 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar 

Thanks for your response, your response did help me in a certain direction though. I had to create a new widget and customize it accordingly., but not through click events rather I had to glide the url from the reference tables and render it on the screen using html elements.

 

I've marked you answer helpful. 

Thanks.

@HrishabhKumar 

I believe I provided you the direction so that you can achieve your requirement.

As per new community feature you can mark multiple responses as correct.

If my response helped please mark it correct as well so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader