Below are the steps we are trying to achieve.
- Click on form button
- onClick() → call REST end point(which is dynamically changing) and get the response
- Set the response value to some text field.
To summarize, we want to click on button and set the value (generated from REST) to text field