using script

keerthana
Tera Contributor

In a incident table the short description value should be copied to the description on the same record.

1 ACCEPTED SOLUTION

Harish Bainsla
Kilo Patron
Kilo Patron

You can use Business Rule

 

(function executeRule(current, previous /*null when async*/) {
// Check if the Short Description field is not empty
if (current.short_description) {

current.description = current.short_description;
}
})(current, previous);

View solution in original post

4 REPLIES 4

Harish Bainsla
Kilo Patron
Kilo Patron

You can use Business Rule

 

(function executeRule(current, previous /*null when async*/) {
// Check if the Short Description field is not empty
if (current.short_description) {

current.description = current.short_description;
}
})(current, previous);

Only a specific user incident record should seen by all other users

using script

Samaksh Wani
Giga Sage
Giga Sage

Hello @keerthana 

 

You need to write onChange Client Script :-

 

 

function onChange(control, oldValue, newValue, isLoading, isTemplate) {
    if (isLoading || newValue == '') {
          return;
    }
 
  var short_des = g_form.getControl('short_description');
  if(short_des.changed){
    g_form.setValue('description', newValue);
  }
  
   
}

 

 

Plz Mark my Solution as Accept and Give me thumbs up, if you find it helpful.

 

Regards,

Samaksh

Aman Kumar S
Kilo Patron

Hi @keerthana ,

You need to write any code here,

You can just create an Before Insert BR, and update action as below and try this.

descassd.PNG

Best Regards
Aman Kumar