Auto Populate without Submit
Is it possible to auto populate fields from a lookup field without hitting submit?
I am working with two modules: leads & contacts
Leads module
I have a contact lookup field called 'Existing Client' and I have contact information fields.
If Existing Client is not null I would like it to auto-populate the client fields upon user input, since some of the fields are mandatory.
I created a script (which I have not tested yet) to map the appropriate fields.
- // get record
- lead = zoho.crm.getRecordById("Leads",leadid);
- //lookup the value in 'Existing_Client' lookup field
- clientLookup = lead.get("Existing_Client");
- if(clientLookup != null)
- {
- // get contact record id
- contactid = clientLookup.get("id");
- // get contact record
- contact = zoho.crm.getRecordById("Contacts",contactid);
- // get contact information
- firstname = contact.get("First_Name");
- lastname = contact.get("Last_Name");
- email = contact.get("Email");
- phone = contact.get("Phone");
- //create map
- mp = Map();
- mp.put("First_Name",firstname);
- mp.put("Last_Name",lastname);
- mp.put("Email",email);
- mp.put("Phone",phone);
- // auto populate lead fields
- updateRec = zoho.crm.updateRecord("Leads",leadid,mp);
- }
My problem? I cannot figure out how to populate on user input, only on submit/save.
Sticky Posts
Focus Group Webinar - Streamline Record Creation with Wizards
Hi there, With all the time your users spend on record creation, do you feel like they have the most seamless experience while doing it? For different types of records or those with a LOT of fields, do your users spend time navigating to enter data repeatedly?
Notes and Attachments visibility can now be restricted based on profiles
Dear All, We hope you're well! We are here with a quick update about Notes and Attachments profile permissions. In the past, a record's Notes and Attachments were visible by default to all users with record access. However, as notes and attachments can
Identify and prioritize profitable deals: Zoho CRM Forecasts help users focus on revenue-driving opportunities
Post moderated on: 7th November: Release update: This feature is now available for users in all DCs. Dear Customers, We hope you're well! At any given time, a sales rep handles multiple deals, each progressing at its own pace. But not all deals will succeed—some
Gain control over record sharing with portal users through our new enhancement: criteria-based data exposure
Dear Customers, We hope you're well! Portals is a self-service avenue through which your clients can access and manage their direct and related data in Zoho CRM. This empowers them to be more independent and enables them to experience a sense of transparency
Context and convenience just got better with Zia's email intelligence
Dear Customers, We hope you're well! We are in 2024, and email as a tool is only getting more powerful each day. While it enables seamless daily correspondences, we are here with a set of abilities that will enhance your user experience and save several