Error when automatically filling up field based on lookup field
I tried running this code:
- try{
- var procurementId = ZDK.Page.getField("Procurement_List").getValue().id;
- log(procurementId);
- ZDK.Page.getField("Procurement_list_email").setValue(ZDK.Apps.CRM.Procurements.fetchById(procurementId).email);
- }
- catch (error) {
- ZDK.Client.showAlert("Something went wrong. Kindly contact Administrator. " + error);
- }
however the issue is that it keeps on giving me an error.
