How to auto populate short_description when assigned_to is changed from the list view

moni170
Tera Contributor

I need to modify the short_description field of the record whose assigned_to field is changed of modified from list view.

how can i achieve this?

1 ACCEPTED SOLUTION

Brad Bowman
Kilo Patron
Kilo Patron

 You can use a Business Rule if you want to cover all the possible ways where assigned_to can be changed, or if you only want to trigger when done from a List then an onCellEdit Client Script is the way to go.

View solution in original post

4 REPLIES 4

Brad Bowman
Kilo Patron
Kilo Patron

 You can use a Business Rule if you want to cover all the possible ways where assigned_to can be changed, or if you only want to trigger when done from a List then an onCellEdit Client Script is the way to go.

Anand Kumar P
Giga Patron
Giga Patron

Hi @moni170 ,

If you are editing assigned to from list view create new Oncelledit client script and use below script.

 

function onCellEdit(sysIDs, table, oldValues, newValue, callback) {
    var saveAndClose = true;
    var newValue1 = g_form.getValue('assigned_to');
    var shortDescription = g_form.getValue('short_description');
    shortDescription = shortDescription + "\nAssigned to " + newValue1;
    g_form.setValue('short_description', shortDescription);
    callback(saveAndClose);
}

 

 

Thanks,

Anand

Hi @moni170 ,

Please mark it solution proposed if it works for you.

Thanks,

Anand

Thankyou!! But it's not working. Is there any other way!!