- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2017 06:55 AM
When I add a new text field to a table (incident for example) and choose Small (40) or Medium, I may not add more than 40 (100) caracters in this field
But if you choose Large (1000) or X-Large (4000), I may add as many caracters as I want
Is it possible to modify this ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2017 07:29 AM
If its greater than 255 , SN assigns as large data type in the back end.
We use client script to restrict this. below is the script.
var control = g_form.getControl(fieldName);
if (control.value.length > mLength){
g_form.hideErrorBox(fieldName);
g_form.showErrorBox(fieldName, 'You have reached the maximum limit of ' + mLength + ' characters for this field.');
control.value=control.value.substring(0,mLength);
}
else{
g_form.hideErrorBox(fieldName);
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2017 06:58 AM
Good question. Back in 1912 when I first started using SN the fields would automatically adjust their size, and you had to build your own hard-stops.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2017 07:00 AM
Hi Patrick,
Link Max Character Length: Catalog variables, Suggestion Fields & Choice Lists should help.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2017 07:05 AM
Hi Patrick,
You can define client script for your field and don't allow user to submit more than desired number of characters.
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2017 07:06 AM