Client script in portal widget
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2025 09:33 AM
Hi All,
I am new to service portal, as I tried to get a field value using client script on portal widget I am able to display message from html when field value is changed but not able to display anything when record is saved without changing the field value.
$scope.$on("field.change", function(evt, parms) {
if (parms.field.name == 'is_empty1')
c.data.is_empty1 = parms.newValue;
});
This is the code I have used its working fine when I change the value and save the record but its not working when I save the record without changing the value. when I save the record without changing the value then current message does not display I want to show that message when record is saved without changing the value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2025 10:28 PM
Hi @yuvrajkate, its not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2025 08:16 AM
the second function for record save is not executing only first function for field change is working.