Record producer |field length restriction

VRNR
Kilo Contributor

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

3 REPLIES 3

Philippe Simard
Kilo Expert

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


Harish KM
Kilo Patron
Kilo Patron

//onload script


var field = g_form.getValue('short_description').length;  


if( field>10)  


  {  


  alert('YOUR TEXT');  


  return false;  


}  


Regards
Harish

Philippe Simard
Kilo Expert

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