- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2022 07:07 AM
Hi Team,
In portal widgets I see the ng-change is invoked only when old value is replaced by new value.
How can we invoke client functions when the value is changed to null?
I am relative beginner in portal so any clue is appreciated.
Best regards
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2022 07:32 AM
ng-change should respond to null as well, can you share your script
Raghav
MVP 2023

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2022 07:19 AM
Hi,
You can add a if condition within the client function to check whether the new value is null. You can't instruct ng-change for a specific value.
Thank you,
Palani
Palani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2022 07:22 AM
HI Palani,
Thanks a lot for your response.
But what I observed is when the value is changed to null the client function is never called.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2022 07:30 AM
HI Palani
My bad. Please ignore. It does called the client part. Issue with the script
My question itself is wrong here.
Regards
Shreyas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2022 07:32 AM
ng-change should respond to null as well, can you share your script
Raghav
MVP 2023