Expand text area for spmodal

Harika Thota
Tera Expert

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&colon;void(0)" ng-click="escalate()">${Escalate}</a>
           
            </li>
        </ul>

 

 

HarikaThota_0-1703017046930.png

 

Can you please let me know how to do that?

 

Thanks in Advance!

 

0 REPLIES 0