Voona Rohila
Tera Patron

Hi , Try this in your UI Action code

function saveDesc() {
    var desc = g_form.getValue('description');
    g_form.setValue('description', desc);
    gsftSubmit(null, g_form.getFormElement(), 'save_dec'); 
}
if(typeof window == 'undefined')
runBusRuleCode();

//Server-side function
function runBusRuleCode(){
current.update();
gs.addInfoMessage('You did it!'); //testing
action.setRedirectURL(current);
}
	

ChaitanyaKanuri
Tera Expert

I got the solution,

Instead looking for client side solution we can do it via server scripting via GlideRecord.

current.update is updating all the fields. so using below code we can get the solution.

var gr = new GlideRecord('incident');
gr.addQuery('sys_id',current.sys_id);
gr.query();
while(gr.next()) {
gr.description = current.description;
gr.update();
} 
action.setRedirectURL(current);

 

View solution in original post

this is not working with Additional Comments (Journal Input) type field on my form.

I want to update Additional Comments field only with current additional comments field value