- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-26-2023 04:08 AM
How to limit single line text variable on Record Producer to max length as user type in the value.
It can be done on OnChange but, the issue with that is it works only when the focus is moved out from the field/variable.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-26-2023 04:34 AM
@KeDix User max_attribute variable attribute as follows.
It does not require any regular expression or scripting. For more information on variable attributes please refer to
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-26-2023 04:19 AM - edited ‎09-26-2023 04:20 AM
Hello @KeDix,
I leave you a kb article here, maybe it's useful for you:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0718701
Regards
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-26-2023 04:40 AM
I went through the article but do not understand where to mention 'max_length=150'

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-26-2023 04:41 AM
Please refer to my reply where I have mentioned how you can use max_length attibute.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-26-2023 04:45 AM