We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

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