Is there any easiest and simplest way for adding two fields in any SC application?
Example : insurance + VAT = TotalCost
there are javascript frameworks like react, angular or vue , but SC does not support them outofthebox.
you need to program ajax onchange event for every editable field and call your php function to update total costs.
Thanks maximnl…il tried and google more on this, was just looking for an easiest way out…its seems scriptcase will not make life any easy on that for none programmer…
Nico, the video look great and resourceful, the only thing is that no further instructions on how to display it in the field “Total Cost”.
ajax event work pretty smooth , unless you have many variables, ajax way is ok.
i am not sure what did you expect?
Just assign the variable {Total Cost} = something;
I think the easiest way is to make a function make_total that is:
{total_cost} = {insurance} + {vat};
then, on both fields insurance and VAT make an ajax event OnBlur, and in both events call make_total();