Expand text area for spmodal
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2023 12:17 PM - edited 12-19-2023 12:18 PM
Hi,
I have a requirement to expand the text area of the pop up window.
Client Controller:
$scope.escalate = function() {
$scope.data.action = 'escalate';
spModal.open({
message: 'Please provide the reason for Escalation.',
input: true,
value: ''
}).then(function(name) {
$scope.data.name = name;
$scope.server.update();
})
Server Script:
if (tableName == 'sc_task' && input.action == 'escalate') {
var gr = new GlideRecord('sc_task');
gr.addQuery('sys_id', record.sys_id);
gr.query();
if (gr.next()) {
var name1 = input.name;
gr.work_notes = name1;
gr.update();
gs.eventQueue('escalate.notification.from.task', gr);
}
}
HTML:
<li>
<a href="javascript:void(0)" ng-click="escalate()">${Escalate}</a>
</li>
</ul>
Can you please let me know how to do that?
Thanks in Advance!
0 REPLIES 0