how to give max length for multi line text in service portal?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2018 02:02 AM
Hi,
I need to set limitation for variable type: multi line text and set the max character to 4,000.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2018 10:30 PM
catalog item multiline text field? Or HTML text field?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2018 06:26 AM
catalog item multiline text field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2018 09:59 PM
Try below catalog client script,
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
var multi = g_form.getValue('multi');
var len = multi.length;
if(len>4000){
var str = multi.slice(0,4000);
g_form.setValue('multi',str);
alert('Length exceeded');
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2018 12:24 AM
I didn't explain myself properly,
I don't want to allow enter more then 4,000 characters, so when the user enter the 4,000 character he can't type anymore.
Just like the Variable attributes max_lenght in Single Line Text.