Calculation in ERPNext web form

Hi all,

I created a Doctype the fields are Share_value, quantity, total_amount

in this I have to add a custom script: when ever I fill Share_value and quantity total_amount should be up date by client script.

total_amount = share_value * quantity

I am completely working on cloud I am not using Ubuntu

please help me with this

You should ideally use server scripts for such operations.
https://frappeframework.com/docs/v14/user/en/tutorial/controller-methods

If you anyway still need client scripts for this,
frm.refresh() or frm.refresh_field('your_field') may be needed after you update it, to reflect the changes.

Documentation:
https://frappeframework.com/docs/v14/user/en/api/form#frmrefresh