Update another field base on one field | Dependent Update | Update multiple fields at once

Update another field base on one field | Dependent Update | Update multiple fields at once

aungkoheinaungkohein Posts: 38Questions: 5Answers: 0

Hi guys!

If you want to update another field based on a field you update, you may want to use this snippet:

File: table.yourtable.js

$( editor.field( 'firstField' ).input() ).on( 'keyup', function (e, d) {
if ( ! d || ! d.editor ) {

  editor.field( 'secondField' ).val( "Closed");        //Once 1st field is edited, it will also save the value, "Closed" into 2nd field
  editor.field( 'updated_by' ).val( username);      //Assign updated_by user

}
} );

------ end --------

This discussion has been closed.