Hi
Option1:
Dang's suggestion is correct. Maybe the way it is triggered.
1. You enter Name (in screen 1) in TextInput1; set the Reset: Button2.Pressed
2. Click a button1 and navigate to Screen 2 (Button1, OnSelect: Navigate(Screen2, None))
3. Click a button2 and navigate back to Screen 1; (Button2: OnSelect: Navigate(Screen1, None))
4. In Screen1, you will see that TextInput1 entry is now cleared.
Reset: this can be triggered from another screen (global).
NB: When you click on Screen2 Button, the TextInput1 is cleared even before you navigate back to screen1.
Option 2:
You may also use UpdateContext, but this is local to the screen.
NB: When you click on Screen2 Button, the TextInput1 is cleared ONLY when you are in screen1 (you can see the test is cleared just when you navigate into screen1).
1. Insert a TextInput1 (in screen 1);
- under Default, say you name it: Default: MyText
- under OnVisible (Screen1), enter: OnVisible: UpdateContext({MyText: " "}); UpdateContext({MyText: ""}).
2. You enter Name (in screen 1) in TextInput1.
3. Click a button1 and navigate to Screen 2 (Button1, OnSelect: Navigate(Screen2, None))
4. Click a button2 and navigate back to Screen 1; (Button2: OnSelect: Navigate(Screen1, None))
5. In Screen1, you will see that TextInput1 entry is now cleared.
Always take note:
UpdateContext({MyText: " "}); UpdateContext({MyText: ""}).
" " - first one with space; "": second one with space.
Otherwise, you will never get your result.
They are numerous discussion over this with a lot of different options in Project Siena forum. https://social.technet.microsoft.com/Forums/en-US/de063751-7baa-41f0-af8d-20eb05126e40/how-do-i-clear-or-change-the-text-typed-into-a-text-box?forum=projectsiena
Hoe this supplements the rests and helps.