Serious issue with old app builder: Freeflow script editor wipes code

Serious issue with old app builder: Freeflow script editor wipes code

Hi,
I'm experiencing a curious issue. I'll 'save' a code segment using the freeflow script editor (in the old app builder), Zoho will say 'Saved' but then when I click back on the 'On Input' script, all the code is gone. It seems like the script validator is faulty and does not show errors when I click save.

It's very frustrating as the first time I did it, I didn't realise and lost about 50 lines of code. Now I'm aware because there's a telltale sign: the dot next to the input field shows as grey instead of green (see screenshot).



Here is an example of code that refuses to save. The last line ( input.Total_Price = 0.0;) causes the editor to wipe the code. Total Price is a currency field so I'm not sure why it's causing a problem..
  1. product_type = Products[ID == row.Item_Type];
  2. max_price = product_type.Max_Price;
  3. this_row_price = row.Price_Per_Piece;
  4. if (max_price < this_row_price)
  5. {
  6. alert("Warning: the price you entered exceeds the maximum price for this product ($" + max_price + " per piece).");
  7. row.Price_Per_Piece = 0.0;
  8. }

  9. total_price = 0.0;
  10. for each item in input.Items
  11. {
  12.     item.Total_Price = (item.Quantity  *  item.Price_Per_Piece);
  13.     total_price = (total_price  +  item.Total_Price);
  14. }

  15. //input.Total_Price = 0.0;