Hey guys, I have written a program that stores and outputs values. I have to buttons an “add” button and a submit button. The add button should clear the input field (so its ready for a new input) and the submit button should output all the stored values (stored with the add button). At the moment I implemented it so when I press the add button I immediately receive the value in the output. But it should only be stored at that moment and then when pressing the submit button int should output all the values.

You’ll need a piece of state in your model that indicates whether or not to show the list. The submit button would set that value to true, and the view function would only display the list if the value is true. Does that help?