How to display data in a form field?

How to display data in a form field?

Hello

I want to display some data in a single field when i choose some option in a dropdown o multiselect field, or when i put some numeric values in a number field i want to display the sum total of that values in another numeric or currency field without going to the view from that form.

Thanks for your time and patience

Greetings from Colombia