
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2016 12:29 PM
Greetings all,
I'm looking for some assistance on syntax for a series of start withs
IE if it startswith ABC, or XYZ or CAT.
I know it's a on change script for the variable, just not sure on how to match characters. (case insensitive)
Any thoughts?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2016 01:35 PM
Here's one way to do it using test():
if (/^(ABC|XYZ|CAT)/i.test(value)) { /* process TRUE condition */ } // starts with ABC or XYZ or CAT, ignore case
Hope this helps.
Please feel free to connect, follow, mark helpful / answer, like, endorse.
John Chun, PhD PMP ![]() | ![]() |
Winner of November 2016 Members' Choice Award

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-21-2016 05:23 AM
Thank you all for your assistance, all of you have been helpful in this. I had to mark the most useful as correct as it directly correlated to my scenario. But I appreciate the other two and can reference them as well in future endeavors!.