Show field message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 10:06 PM
Hi Developers,
I have a list collector field called macro_module.
This variable drop-down does not have an option called 'Knowledge'.
When an end user search for 'Knowledge' on this variable. I want to show a field msg.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 10:13 PM
Hi @Naveen87 ,
In your script, Line no.6, semicolon is missing. Please give the semi-colon and try.
Please hit the like button if my suggestion has helped you in any way.
Please mark correct if my response has solved your query.
Thanks & Regards
Jyoti Jadhav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 10:25 PM
Semi-colon ; aren't mandatory & they aren't the issue here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 10:21 PM
Hello @Naveen87,
The if condition seems wrong.
Write if condition as below:
if (fieldValue.toLowerCase().includes ("knowledge'))
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 10:27 PM
HI,
Tried but no luck.