Hello @Anonymous
In form take two controls in datacard first one is Textinput and another one is dropdown on button click Set variable
Set(view,true)
On text Input controls visibility function Add this : If(view=true,true,false) And on Dropdown control visibility function If(view=true,false,true) ,
On second Button Set Variable Which Might be Edit Or View Set Set(view,false)
If View variable has true value then Input control will be visible or else if view variable has value false then dropdown will be visible


Set default of both control as per your requirement
I Hope now your are clear ,
like if its helpful,
Thanks in advance
Regards
Rutuja Chavan