Trigger a widget load after setting a checkbox to true
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2024 03:41 AM
Hi All,
I am using a custom with label on catalog in service portal.
I am trying to load a widget after clicking on a checkbox on catalog form to true, i want the server script also to run only after the check box is set to true
How to make that happen?
in client controller
function($scope, $rootScope) {
var c = this;
console.log('in client controller');
$scope.$on("field.change", function(evt, parms) {
if (parms.field.name == 'check_for_group_usage')
c.data.checkGroup == parms.newValue;
console.log('in client controller');
});
Server script
if (data.checkGroup) {
var tableName = '';
var groupBy = '';
var groupFilter = "";
var ga;
}
Please help
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2024 06:26 AM
To call server side script again from client side use c.server.update();
Example:
If(checkbox is checked){
c.server.update()
}
If any issue reply.
Mark this helpful if it helps you