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

Size of an URL field used in a Menu Item

richardd_
Kilo Contributor

Hello

We use the Fuji release and created a Portal for our end-users.

We have a menu which displays the list of the closed requests, easy 🙂  

Now I received a request : sort this list by closed date. But I have an issue because the url field size seems to be stuck to 256 caracters !!!

Can you help me ?

1 ACCEPTED SOLUTION

Mwatkins
ServiceNow Employee
ServiceNow Employee

Ok. Got it. The URL type field hides the Max Length field on the Dictionary form by default due to a UI Policy. But there isn't really a good reason for that -


Browsers support URL length up to 2,083 characters


The URL field is just a String field in terms of data type. Modifying String fields to larger Max Length is a simple process of changing the value of the Max Length field.


https://docs.servicenow.com/bundle/istanbul-servicenow-platform/page/administer/reference-pages/task...



So all you need to do is get around the UI Policy. To do this do the following:


1. Open the Dictionary record for the URL field


2. Change the Type to "String" (don't save yet)


3. The Max Length field will appear.


4. Change the Max Length to 2,083 (or whatever you want)


5. Change the Type back to URL


6. Now you can save your changes.


View solution in original post

11 REPLIES 11

Bharath40
Giga Guru

Hi Richard,



Do you want to increase url field size. Is that your question.


Hello Bharath



thank you for you reply.



Yes it is my question. How can I increase the size of this kind of field ?


Just a correction : this instance is in Geneva release


Did you try to update through configuring dictionary for url field.



Right click on URL field select configure dictionary and change Max length value to you desired.


Mwatkins
ServiceNow Employee
ServiceNow Employee

Little confused on this question. Can you provide a screenshot? How is the 256 character limit on url field size stopping you from sorting on "closed date"?



By the way, are you talking about the ESS Portal that comes with CMS or Service Portal?


CMS and Service Portal