0

HTML Code

<td ng-show="visibleNewAccount">      <p class="input-group leftClass">     <label class="ng-binding" for="employeeType" style="padding: 0px 0px 0px 0px">Employee Type<span class="setRedColor">*</span></label> <select class="form-control heightselect dropDownWidth" style="border: 1px solid #F5F2F7; background-color: #F5F2F7 !important; border-radius: 17px !important;" ng-model="selectedEmployeeType" id="employeeType" ng-change="c.selectedEmployeeType()"><option value="">Select</option>   <option value="Employee">Employee</option> <option value="Contractor">Contractor</option></select></p> </td>

Client Controller Code

api.controller = function($scope, $timeout, $uibModal, $http) {
    $scope.visibleNewAccount = false; 
};
 console.log(api);

How to hide and show input field on widget using ng-show function ServiceNow
Working Code Edited question November 25, 2023