- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2025 09:21 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2025 10:41 AM
Your scripts need few modifications.
PFB.
1.UI script:
var FIG_alert_message = Class.create();
FIG_alert_message.prototype = {
initialize: function() {},
show_message: function() {
alert('TEST 2');
},
};
2. Client script.
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
//Type appropriate comment here, and begin script below
var a = new FIG_alert_message();
a.show_message();
alert ('Inside client script ');
}
Note:
-> Check the UI script name in the client script. It's s not matching with your actual UI script name.
Hope this helps.
Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2025 10:32 AM - edited 03-15-2025 10:36 AM
Hello @DoDo labs___
Make one change in your client script:
var a = new FIG_alert_message();
Make two changes in your UI script:
1. Add semi colon at the end
var FIG_alert_message = Class.create();
FIG_alert_message.prototype = {
initialize: function() {},
show_message: function() {
alert('TEST 2');
}
};
2. UI Type: Desktop and check Global
Here are the results:
Client Script:
UI Script:
Hope it helps!
Hope that helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2025 11:22 AM
The error message is still there 😞
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2025 11:26 AM
Hello @DoDo labs___
Can you provide screenshots of your Client Script and UI Script, the way I posted above.
Hope that helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2025 10:41 AM
Your scripts need few modifications.
PFB.
1.UI script:
var FIG_alert_message = Class.create();
FIG_alert_message.prototype = {
initialize: function() {},
show_message: function() {
alert('TEST 2');
},
};
2. Client script.
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
//Type appropriate comment here, and begin script below
var a = new FIG_alert_message();
a.show_message();
alert ('Inside client script ');
}
Note:
-> Check the UI script name in the client script. It's s not matching with your actual UI script name.
Hope this helps.
Regards,
Siva