Client script to validate whitespace in a Multi line text variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2022 06:50 AM
Hi,
Could you please suggest on how to restrict each item in a single line as well as to validate if there is whitespace in each line. Please see the image for reference.
Thanks in advance.
- Labels:
-
Incident Management
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2022 07:11 AM
Hi
can you please define what your understanding of "white space" is?
The line feeds are already white spaces!
Kind regards
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2022 07:34 AM
Yes, that is correct, the line feeds are already white spaces. Is there a way to restrict spaces in between each word in a single line?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2022 08:00 AM
Hi
I have found the following approach on the quick: https://regex101.com/r/kMBkx0/1
That regular expression works the other way round: if you include a space then it will be positiv, otherwise negative.
Kind regards
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2022 10:49 AM
Hi
In case you think I was able to answer your question, I would be happy if you mark the appropriate response as "correct" so that the question will appear as resolved for other users who may have a similar question in the future.
If not, please tell me what you are still missing!
Many thanks & kind regards
Maik