Use Cases of Client Script - Manufacturing
Auto-population using third party API, set read-only field, show custom error message, show confirmation box with custom message and populate a lookup field based on another lookup field

  • Requirement
  • View Solution using Client Script

The Context

QRS is a manufacturing company using Zoho CRM. They manufacture electrical switches and sensors. Sellers buy the products from the manufacturing units located in different cities. The QRS company handles everyday requests raised by sellers and also maintains the details of sellers like name, address, number of products, etc., using Zoho CRM. The details of manufacturing units and sellers are saved in the Accounts module and details of the products manufactured are saved in the Products module. The products manufactured by the company are grouped under two categories - Sensors and Electrical Switches. The details of them are available in the Category custom module.


Requirement

Whenever a seller wants products, the seller submits the Request in Zoho CRM to the manufacturer along with the quantity of products required which gets saved in the Request module. The Request module is a custom module. Distance, Seller Location, Manufacturer Location, Quantity of products, Product, and Category are custom fields in this module. Here Product and Category are lookup fields.

  • Distance should be a read-only field. Based on the Manufacturer Location and Seller Location, populate the field Distance using Third Party API.
  • Populate the field Request Name as REQ-Date and should be a read-only field. For example REQ-22-07-2022.
  • Quantity of products should be a numeric field. If the quantity entered is less than 100, display the message "Minimum quantity of products should be 100".
  • On click of the save button, a confirmation pop-up window should appear on the screen with message -Your Request is submitted and will be shipped within 4 days.
  • The lookup field Category should be populated based on the Product selected.
    Battery, Thermostat, and Ignition Switch belong to the category of Electrical Switches.
    The products Fuel level sensor, Light sensor, and Airbag sensor belong to the category Sensors.
Go To Solution