if (transition.name == 'Gather details') { // To show pop up and get the Alternate Number and update the //record's Alternate Number var var_alt = ZDK.Client.getInput([{ type: 'text', label: Alternate Number}], 'Give these details', 'OK', 'Cancel'); if (var_alt != null) { var lead = ZDK.Apps.CRM.Leads.fetchById($Page.record_id); lead.alternate_number = var_phone.toString(); var response = lead.__update(); } else { ZDK.Client.showMessage('Details have been gathered successfully' }); } $Client.refresh();// to refresh the page } |
Writer is a powerful online word processor, designed for collaborative work.