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
- var object1 = ZDK.Page.getField('City_Details').getValue();
- if (object1 == true)
- {
- var object2 = ZDK.Client.getInput([
- {
- type: "text",
- label: "City Name"
- },
- {
- type: "picklist",
- label: "Select State",
- list_options: [{ actual_value: "Sales", display_value: "Sales Department" },
- { actual_value: "HR", display_value: "HR Department" }]
- },
- {
- type: "textarea",
- label: "Select State",
- default_value: "Test"
- }
- ], "City Details", "Okay", "Cancel");
- var object3 = ZDK.Page.getField('City_Name');
- object3.setValue(object2[2]);
- }
-> 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
-
-
-
-
-
-
-
-
-
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
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.