As title
Discussion posts and replies are publicly visible
Here is a simple code snippet that should help you achieve this functionality. As mentioned by other practitioners, you set the value of your text input to null in the button's saveInto.
a!localVariables( local!text, { a!textField( label: "Input", value: local!text, saveInto: local!text ), a!buttonArrayLayout( buttons: a!buttonWidget( label: "REFRESH INPUT FIELD", saveInto: { a!save(local!text, null()) } ) ) } )
You are right!