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

Hello Teena,



Really sorry but I don't understand what I have to do.


I already marked the Matthew's reply as correct (the 26th of January) and the question is "solved".



Thank you for your understanding (it's my first post )


Regards


Richard


Thanks Richard, my bad.


My apologies as you had marked the reply as correct and the discussion as solved.


Regards,


Teena