Display content manager field value in one textbox based on button click

I have a dynamic page. first page contains title. Clicking on the title redirects to page details where different fields can be connected to dataset. I want to add two button in this page. When I click on button1 it should show field1 value in textbox1. When I click on button2 it should show field2 in the same textbix1.

Kindly help someone with code. I’m completely new to Wix. No idea about Wix code. Thank you

To learn about programming with Velo, read the following articles that will help you start working with Velo: