The CreatorCon Call for Content is officially open! Get started here.

Question about URL Type field

veena_kvkk88
Mega Guru

Hello all!!

I'm not sure how URL type fields work. I know that once locked, they display a hyperlink.

-> But would we be able to click on it and go to the path on the network? Like if we store a path to a folder, would that folder be opened once the URL field value is clicked?

-> Are there any restrictions or rules for this to work?

I'd greatly appreciate any more information anyone could provide on this field type since the documentation doesn't have much. Thanks in advance!!

20 REPLIES 20

No issues Chuck!



But oh! there's been a miscommunication. When you asked for a screenshot of the field, I thought you were asking about the field in the other tool I was referring to.



The screenshot I sent is not a ServiceNow form. It is from the tool called 'MobileAsset' by WASP technologies, which is what the client is asking us to replicate. In that tool, user can simply click on that button next to the location, and the appropriate folder opens up.



I have not created a URL field in the ServiceNow instance yet. It is currently a string field storing the location. The requirement is to make it clickable and be taken to that folder, as in, the folder should open. But I wanted to make sure if that is even possible with URL type field, before I recreate the fields with a different field type.


Not having a Windows machine to test this on, I'd suggest creating the field on a dummy table in your dev environment and seeing if the file://pathname format works.


That I did the first time you suggested it. I created a test url field and saved the path with the prefix file:// but it did not work.


Adding file-type links from a ServiceNow perspective works just fine. The issue you'll probably face is that most modern browsers prevent you from open local URIs in a non-local (http / https) context. A way to get around this is to adjust your browsers security settings (I think for chrome there exists an extension to allow this).


I've heard some people got around this by mapping file paths to virtual directories in IIS.


So in essence, this is a security question to be solved in your infrastructure, and nothing that can be solved in ServiceNow directly.


URL type field is for global accessible links like Web Links not for file system links