Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Creating button in Record Producer

priyabalukt
Tera Contributor

I have to create a "Cancel" button in the record producer. How can it be done

1 REPLY 1

folusho
Tera Guru

@priyabalukt 

 

You can use a widget in your record producer.

 

folusho_0-1746724855191.png

 

 

folusho_1-1746724965060.png

 

For the widget:

 

<button class="btn btn-warning" ng-click="c.onCancelClick()">
  Cancel
</button>

 

function($scope) {
  $scope.c = $scope.c || {};

  $scope.c.onCancelClick = function() {
    alert("Are you sure you want to cancel?");
  };
}

 

folusho_2-1746725105250.png

 

Please mark as helpful if it resolves your question. Thanks