Hey Prasad,
 
I don't have exact code as I am not able to restore my instance. Here I have written a code which is same as functionality you looking for, so you can try this. 
 
HTML
<div>
 
<!-- your widget template -->
 
  <form id="myForm">
    Caller: <sn-record-picker field="username" table="'sys_user'"  search-fields="'name'" ></sn-record-picker>
 
    Short description:<br><input type="text" name="SD" ng-model="c.sd"/><br>
  Description:<br><input type="text" name="des" ng-model="c.des"/><br>
 
    <br><button type="submit" ng-click="c.test()">Create Incident</button>
   
 
<!--<br><button onclick="document.getElementById('myInput').value = ''">Create Incident</button>-->
  </form>
</div>
 
Client Script
function() {
  /* widget controller */
  var c = this;
c.test=function()
{
c.data.tempsd=c.sd;
c.data.tempdes=c.des;
 
c.server.update().then(function()
     {
alert(c.data.a);
});
 
 
}
}
 
Server Script
(function() {
  /* populate the 'data' object */
  /* e.g., data.table = $sp.getValue('table'); */
 
if(input)
{
var gr = new GlideRecord("incident");
     gr.initialize();
gr.short_description=input.tempsd;
gr.description=input.tempdes;
 
gr.insert();
data.a=gr.getDisplayValue('number');
//gs.addInfoMessage("Incident Is Created");
 
 
}
 
})();