I am a little confuse: "With" does or does not override the "Hold" attribute? Because this code below doesn't work:
Clear[f, fn, c, n, t];
InputField[Dynamic[n]]
Dynamic@If[NumberQ[n],
A = Table[c, {i, 3 n} ];
Grid[{Table[ With[{i = i}, InputField[Dynamic[A[[i]]], FieldSize -> Tiny]], {i, 3 n}]}]]
Dynamic@If[NumberQ[n],
With[{n = n}, fn[t_] := Sum[A[[3 i - 2]] PDF[NormalDistribution[A[[3 i - 1]], A[[3 i]]],
t], {i, 3 n}]]];
Dynamic@Plot[fn[t], {t, -10, 10}]