Can a button affect the values in fields?

Thank you!