How to update record using client script

function(currentRecord)
{
 function fieldChanged(context)
  {
  var theRecord = context.currentRecord;
  var val = context.getValue('location');  
  if(val == 'location1')
  {  
    context.setValue('location2');  
  }
 }
return{  fieldChanged : fieldChanged;};
}

Published by deeps blog

Programmer

Leave a comment

Design a site like this with WordPress.com
Get started