Use formula in hidden fields of edit button

In the Edit record button, add the option of typing a formula in the Hidden Field type. For Example I want to update the value to be the selected value in another shown field.