Validations on form submission > Run Scripts - While Adding a Record (Deluge Script)
New Order > Created > Validations on form submission > Run Scripts - While Adding a Record (Deluge Script)
//Validating date field
if(Estimated_Delivery_Date < Order_Date)
{
alert "Please check the delivery date!";
cancel submit;
}
//Validating each product quantity here
quantityExist = true;
for each eachRow in Products
{
if(eachRow.Quantity == 0)
{
quantityExist = false;
}
}
if(quantityExist == false)
{
alert "Please check the product quantity to place order!";
cancel submit;
}
Comments
Post a Comment