how to increase height of the box the user down list box ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2024 06:52 AM - edited 07-31-2024 06:55 AM
Hi
i want to increase the height of the box not the lookup list on the widget page
i do not want to be like this
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2024 12:38 AM
Hi @chercm ,
can you try like below
HTML:
<div class="col-xs-6">
<label for="firstname"><b>User Name</b></label>
<span style="padding-right: .25em" title="Mandatory"
class="fa fa-asterisk mandatory"
ng-class="{'mandatory-filled': username.value != ''}"></span>
<sn-record-picker id="firstname" field="username"
table="'sys_user'"
default-query="data.existUserid"
display-field="'name'"
display-fields="'email'"
value-field="'sys_id'"
search-fields="'name,email'"
page-size="100">
</sn-record-picker>
<input type="button" value="Submit" ng-click="c.submit()"/>
</div>
Client controller:
api.controller=function($scope, spUtil) {
/* widget controller */
var c = this;
c.email = "";
$scope.username = {displayValue:"",
value:"",
name:"username"};
$('#addexUserForm').modal('show');
c.submit = function() {
console.log($scope.username.value);
if ($scope.username.value == '') {
alert("Input missing");
} else {
//Do the submit
//action is only required if you will be doing additional different call backs
c.server.get({"action":"submit",
"id":$scope.username.value}).then(function(_response){
if (_response.data.myReturnedVal == 'Complete') {
$('#addexUserForm').modal('hide');
spUtil.addInfoMessage("This is now complete");
}
})
}
}
};
Server:
(function() {
if (input && input.action == 'submit') {
//Do something with user's sys_id "input.id"
data.myReturnedVal = 'Complete';
}
})();
Output:
Please mark helpful & correct answer if it's really worthy for you.
Thanks,
BK