Record producer |field length restriction
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2017 09:13 PM
Hi,
We have one record producer which is on Incident table. In which, back end ( in the service catalog form)it is named as "detail" which is mapped to short analysis field. Now i want to restrict the short analysis field length.
I have used max_length= 10 in variable attributes. but still i'm able to type more than 10 characters. please let me know why this one occur and how can i achieve the same.
Thanks in advance.
Regards,
Ram
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2017 10:14 PM
Hi Ram,
I was able to obtain the expected result on an OOB instance using the max_length=10 attribute.
Could you attach a screenshot of your variable's configuration?
Thanks,
Phil

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2017 10:15 PM
//onload script
var field = g_form.getValue('short_description').length;
if( field>10)
{
alert('YOUR TEXT');
return false;
}
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2017 10:28 PM
Forgot to mention, if you're trying to reduce the max length of a field on the incident table, you need to configure the dictionary entry for the specific field and input a new Max Length in there. The max_length=10 only work on catalog variables.
Cheers,
Phil