Load of the form > Run Scripts - While Adding a Record

New Order > Created > Load of the form > Run Scripts - While Adding a Record


disable Products.Unit_Of_Measure;

disable Products.Unit_Price;

disable Products.Total;

//Assigning loggedin user details in 'Sales Owner' field

input.Sales_Owner = Add_Employee[Email == zoho.loginuserid].ID;

//Autofilling the order date with current date

input.Order_Date = zoho.currentdate;

productCount = Add_Product[ID != 0].count();

if(productCount == 0)

{

openUrl("#Form:Add_Product","same window");

}

Comments