Zoho CRM Client Script Open Pop-Up

Zoho CRM Client Script Open Pop-Up


Hello All

Hope you are doing well.

In this article, you will see how we can create a Popup and get the value from the Popup Up.

Example:- Suppose we have a field (Boolean Type) City Details once someone selects this a popup will open and capture some information and paste it into other fields.




to create the same we have to apply a client script, Please see the sample code for the same

  1. var object1 = ZDK.Page.getField('City_Details').getValue();
  2. if (object1 == true)
  3. {
  4.     var object2 = ZDK.Client.getInput([
  5.         {
  6.             type: "text",
  7.             label: "City Name"
  8.         },
  9.         {
  10.             type: "picklist",
  11.             label: "Select State",
  12.             list_options: [{ actual_value: "Sales", display_value: "Sales Department" },
  13.                 { actual_value: "HR", display_value: "HR Department" }]
  14.         },
  15.         {
  16.             type: "textarea",
  17.             label: "Select State",
  18.             default_value: "Test"
  19.         }
  20.     ], "City Details""Okay""Cancel");

  21.     var object3 = ZDK.Page.getField('City_Name');
  22.     object3.setValue(object2[2]);
  23. }
-> In object2 we have saved the data as Array
using the no. of array we can pass the result to other fields.

We Can also use this code as a static resource. if you facing any issues regrading zoho development please post your questions team will check.

Thanks & Regards
Piyush Goyal
Zoho Developer || 3+ years Experience
+91-8619164837 

    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly Resources


                  Zoho Creator Resources


                    Zoho WorkDrive Resources



                      Zoho Campaigns Resources

                        Zoho CRM Resources

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner




                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方