Cannot make scripts in sub form work

Cannot make scripts in sub form work

I created a simple sub form with some simple math between fields. When i test it in the Forms area it works perfectly. However, when I try it as a sub form of a master form, the script is ignored.

Here is the script attached to the On User Input event of a field:

  1. input.HST = (input.Product_total  *  0.13).round(2);
  2. input.Total = (input.HST  +  input.Product_total);

Any help appreciated.

Kerry