Hi,
I am trying to add line items to a form I created, automatically generate price from another dataset, and calculate the total value (price*quantity). The idea is that when the page loads, a subform will appear, based on a dataset. See the video of the feature that I am trying to reproduce.
The code I wrote in zoho creator worked but I am new to Javascript…
(execute script on user input):
if(row.Product_Service != null)
{
inventoryProducts = Add_Product_Service[ID = row.Product_Service];
//Autofilling the “Unit Of Measure” and “Unit Price” fields with product data
row.Unit_of_Measure=inventoryProducts.Unit_of_Measure;
row.Unit_Price=inventoryProducts.Selling_Price;
}
else
{
row.Unit_of_Measure=“”;
row.Unit_Price=0.00;
}
Any help of how I reproduce this form in the video to Wix Code would be greatly appreciated!
Thanks!