How can the user enter specific numbers to a an already existed list using InputField
, for example:
list1 = {{1, 2, 3, 4, 5}, {6, 7, 8, 9, 10}}
and the user wants to input 55 instead of 5, and 88 instead of 8.
Another example:
list = {};
DynamicModule[{x},
Column[
{InputField[Dynamic[x], String],
Dynamic @
Refresh[If[x != "", AppendTo[list, x]; x = "";]; "", TrackedSymbols :> {x}],
Button["Reset", list = {}]}]]
Dynamic[list]
The previous code allows the user to input numbers into a new list (by pressing Tab after writing them in the input field). I want the same way of entering numbers, but into an already existing list.
Your help is highly appreciated