Auto-update multiple fields with same values.

Auto-update multiple fields with same values.

When you consider the data that you add in Zoho CRM, many a time you may want to enter the same value for two different fields in a record.

Some of these scenarios are as follows :
  1. If the customer only has one phone number, the information in the 'Phone' and 'Mobile' fields could be identical.
  2. If the client uses a single email address, the 'Email' and 'Secondary Email' fields might both have the same information.
  3. We have two separate sections in several CRM forms, such as the 'Address' field and the 'Permanent address' field. In the vast majority of cases, they are identical.
  4. Consider a form that contains information about a person's educational background. If the contact information prompts you to enter the address of the institution under the Bachelors' and Masters' sections, and you wish to enter the same address in both sections, doing so manually is tiring. It will be simpler if the values are automatically populated.
All the above - mentioned specific scenarios can be achieved in Zoho CRM by using custom functions. Initially, a button is created and the custom function is integrated within the button. Once the button is clicked, the actions written in the custom function gets triggered accordingly.

Step for creating a button :
  1. Go to Setup > Customization > Modules and Fields > Select the required module > Links and button > +New Button.
  2. Provide the needed details and choose the viewing positioning accordingly. (Preferable - View page)
  3. From the drop-down menu that appears, select Writing Function.
Now for creating a custom function, follow these steps:
  1. Provide a name for the custom function and other essential details.
  2. Click on 'Edit Arguments'.
  3. Based on the examples map the required parameters. Module ID mapping is common for all the examples.
For example 1 : Similar contact number
Enter the name as phone and select the value from the desired module.


For example 2 : Similar email address
Enter the name as email and select the value from the desired module.

For example 3 : Similar address
Enter the mapping name for all the fields in the address and select the value from the desired module.

For example 4 : Similar institution
Enter the name as institution and select the value from the desired module. 


4. Now, type the code given below.
 mp = Map();
 //For example 1
 mp.put("Mobile",phone);
 //For example 2
 mp.put("Secondary_Email",email);
 //For example 3
 mp.put("Permanent_City",city);
 mp.put("Permanent_Street",street);
 mp.put("Permanent_Country",country);
 mp.put("Permanent_State",state);
 map.put("Permanent_Zip_Code",zipcode);
 //For example 4
 mp.put("Senior_High_School_Details",highschool);
 //Common for all examples
 autoPopulate = zoho.crm.updateRecord("Leads",lead_id.toLong(),mp);
 info mp;
 info autoPopulate;
 return "Fields are populated successfully";
5. Save the changes.
6. Select which profiles will be able to view this button.



Execution :

Example 1 :

Example 2 :

Example 3 :

Example 4 :



Note :

This function is already available in the Quotes module. Furthermore, they can transfer data in both directions. That is, information from field 'A' can be moved to field 'B,' and vice versa.
To implement a similar function in Leads, Contacts and any other module of your choice, the above function will be helpful.




    Access your files securely from anywhere

      Zoho CRM Training Programs

      Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

      Zoho CRM Training
        Redefine the way you work
        with Zoho Workplace

          Zoho DataPrep Personalized Demo

          If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

          Zoho CRM Training

            Create, share, and deliver

            beautiful slides from anywhere.

            Get Started Now


              Zoho Sign now offers specialized one-on-one training for both administrators and developers.

              BOOK A SESSION









                                            You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                Manage your brands on social media

                                                  Zoho Desk Resources

                                                  • Desk Community Learning Series


                                                  • Digest


                                                  • Functions


                                                  • Meetups


                                                  • Kbase


                                                  • Resources


                                                  • Glossary


                                                  • Desk Marketplace


                                                  • MVP Corner


                                                  • Word of the Day


                                                    Zoho Marketing Automation

                                                      Zoho Sheet Resources

                                                       

                                                          Zoho Forms Resources


                                                            Secure your business
                                                            communication with Zoho Mail


                                                            Mail on the move with
                                                            Zoho Mail mobile application

                                                              Stay on top of your schedule
                                                              at all times


                                                              Carry your calendar with you
                                                              Anytime, anywhere




                                                                    Zoho Sign Resources

                                                                      Sign, Paperless!

                                                                      Sign and send business documents on the go!

                                                                      Get Started Now




                                                                              Zoho TeamInbox Resources



                                                                                      Zoho DataPrep Resources



                                                                                        Zoho DataPrep Demo

                                                                                        Get a personalized demo or POC

                                                                                        REGISTER NOW


                                                                                          Design. Discuss. Deliver.

                                                                                          Create visually engaging stories with Zoho Show.

                                                                                          Get Started Now









                                                                                                              • Related Articles

                                                                                                              • Types of Custom Fields

                                                                                                                In Zoho CRM, you can add different types of custom fields as per your requirements. These fields will be available to all the users added to your organization's CRM account. Customize Zoho Defined Fields : You can edit, delete and hide some of Zoho ...
                                                                                                              • Working with Custom Fields

                                                                                                                In Zoho CRM, you can add new fields as per your requirements. These fields will be available to all the users added to your organization's CRM account. Customize Zoho Defined Fields: You can edit, delete and hide some of Zoho defined fields, but note ...
                                                                                                              • Marking Personal Fields

                                                                                                                GDPR defines personal data as any information relating to an identified or identifiable natural person (i.e. the data subject). There is a wide range of personal data that includes email addresses, location, mobile numbers, identification numbers, ...
                                                                                                              • FAQs: Multiple Sales Pipeline

                                                                                                                1. What is a sales pipeline? A sales pipeline is a visual representation of your sales process that shows where your prospects are in the buying cycle, how many open deals you have, how long a particular deal stayed in each stage, and whether you ...
                                                                                                              • Auto-response rules for webforms

                                                                                                                Webforms are a powerful tool for generating leads, as they serve as a direct line of communication between businesses and their leads by helping record and track every inquiry submitted via a business's website in their CRM tool. Businesses can then ...
                                                                                                                Wherever you are is as good as
                                                                                                                your workplace

                                                                                                                  Resources

                                                                                                                  Videos

                                                                                                                  Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                  eBooks

                                                                                                                  Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                  Webinars

                                                                                                                  Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                  CRM Tips

                                                                                                                  Make the most of Zoho CRM with these useful tips.



                                                                                                                    Zoho Show Resources