Record created from Related list

Sandhya23
Tera Guru

How can I achieve the following.

 

On a parent table, when I click New on the related list, a new record (child) created should automatically fill in some of the field values from the parent table.

 

Regards,

2 REPLIES 2

Ct111
Giga Sage

Check below link for reference,

LINK

 

Something similar has been attempted here . I hope it helps.

Community Alums
Not applicable

Hi @Sandhya23,

You can achieve this through UI action.

var newIncRecord = new GlideRecord('task'); 
newIncRecord.initialize();
newIncRecord.short_description = current.short_description; 
newIncRecord.description = current.description; 
newIncRecord.priority = current.priority;
newIncRecord.insert();