Service Portal Widgets: Clear html fields in portal widget in client script
<br/><br/><button ng-click="clearFields()" class="btn btn-danger action-btn pull-left">Click to reset fields</button> <textarea id='results_q' rows="10" cols="100">{{c.duplrecordsList}}</textarea> ---------- function($scope) { /* widget controller */ var c = this; $scope.clearFields = function() { //console.log("message", 'run the op'); document.getElementById("tbl_name").value=''; document.getElementById("dupl_field").value=''; document.getElementById("custom_query").value=''; //--on a textarea: c.duplrecordsList=''; }; }