- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2017 01:14 PM
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 ?
Solved! Go to Solution.
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2017 09:23 AM
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.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2017 11:33 PM
Hello Matthew
you're right it's always clearer with some screenshots.
In the first one you'll find the url I want to update :
but when I click on the padlock to add my sort condition I'm quickly stuck (256 caracters):
And what I don't understand is that when I check in the dictionary as suggested by Bharath I see that the lenght of my url field is 1024 caracters
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2017 09:07 AM
Ah, great thanks. Checking...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2017 09:23 AM
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.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2017 02:40 AM
Hello Matthew
Thanks a lot, it's working fine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2017 06:40 AM
Richard,
Thank you for posting your discussion to the ServiceNow community.
The Customer Experience team is striving to ensure that customer queries posted from the HI Service Portal are answered in timely and accurate fashion.
If you feel the question has been answered, please mark the community discussion as answered. Also, if you found the response helpful please indicate that in the thread.
Thank you in advance.
Regards,
Teena Singh
Customer Experience: UX Strategy and Customer Insights
teena.singh@servicenow.com
ServiceNow