Getting a Form Value Programmatically
You could use something like
UpdateContext({varMessage: "Hello, World!"});
UpdateContext({buttonPressed: true});
in theOnSelect of a button and
If (
buttonPressed,
varMessage,
Parent.Default
)
in the default of the datafield but do you want to be able write back the original value and overwrite more than once as the buttonPressed value still needs to be reset (probably on update or cancel).
You can read the value by using the text property of the control thus TextInput.Text