Calculating values of field automatically

SAM321
Tera Contributor

Hi all, so i have 4 fields in form like,

Unit price - 5000

Quantity - 6

discount - 10%

when i fill this fields 

Total price field should be filled automatically...How to achieve this

1 ACCEPTED SOLUTION

@SAM321 you should right click on unit in your form and see the field name and that names of other fields respectively should be changed in the script in order to make it work.

View solution in original post

9 REPLIES 9

SAM321
Tera Contributor

@aditya174 its not working

@SAM321 , you need to replace the getValue() parameter with your field's backend name this code won't work if you use it directly, kindly try to replace the parameters or share them here with me so that I can change it for you.

 

Regards,

Aditya

SAM321
Tera Contributor

Screenshot (81).pngScreenshot (82).pngi shared form view and script sir @aditya174 

@SAM321 you should right click on unit in your form and see the field name and that names of other fields respectively should be changed in the script in order to make it work.

SAM321
Tera Contributor

@aditya174 does this script work , if the field id( price field type)