What is wrong with the Client Script?.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2024 10:57 AM
Hello,
I'm working on understanding how the Client Script functions, and I have developed a very simple code for state changes. However, id didn't trigger. Could someone please help me identify what I might have done wrong?
Thank you
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
if(newValue=='2'){
alert("state changed to in progress");
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2024 11:00 AM
Hi @Meera_P
Please correct the script on the highlighted one - change newValue == '2' to newValue == 2 it will work. Remove single course.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2024 12:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2024 12:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2024 12:37 PM
There might be something wrong with our development instance that caused this behavior. I have reached out to SN support for assistance. Thank you