New to javascript and fumbling my way towards a method to use a record (draft invoice) to spawn multiple new records (final invoices - one for each client related to a case).
Right now I'm just trying to get the hang of working with records, and while I can retrieve a connected record's ID, I'm struggling with how to access the rest of the data.
Thanks for your help!
$(document).on('knack-record-update.view_292', function (event, view, record) {var client = record.field_195_raw[0];
alert("clientID: " + client.id); //this alert displays the IDvar clientName = client.field_40;
alert("clientName: " + clientName); //this alert displays “undefined”var clientNameRaw = client.field_40_raw;
alert("clientName: " + clientName); //this alert also displays “undefined”});