Some help refreshing fields in form field after ajax event onchange

Hi everybody,

There are many topics related to this issue, but I still having problems,

Here is the situation,

In a single form, I have one field named “countries” and other named “weight rates”. The user select values of rates depending of the country (ajax onchange, works fine!). I have other fields in the form that depends on the value of rates, like ?total?:

{total} = {weight} * {rate}; // This expression is defined in ajax onChange for field “weight rates”

So when user change the rate, the form should display the new value of field “total”. But it doesn?t work. The value of field “total” don?t change in form.
When SC execute the ajax OnChange, the value of field ?total? are calculated correctly, but when it returns to the form, there is no change. The new value is lost. Maybe I?m doing wrong.

This issue is important to users that need to validate the values of the form when they change the rates, before update the database.

I used ?reload property? in field ?weight rates? after change value, but didn?t work. I?m not expert in JS, and know it holds the trick, but need some light to implement that.

Did you get this resolved? I have a similar problem

i am also having same issue, iproduct_code is capture field or user enter data, in AYAX onchange we are able to retrieve product name from database and stored it in product_name column and also in variable, also echo it and able to view value but front end data is not displayed in product name.

I have the same problem.
Actually, it fills the field correctly at first, but then puts the number 3 right after it.