Wolfram Research

Function Repository Resource:

ListInputField

Source Notebook

Make multiple input fields that update elements of the same list

Contributed by: Jon McLoone

ResourceFunction["ListInputField"][Dynamic[var],type,n]

represents n blank editable input fields of the specified type.

ResourceFunction["ListInputField"][Dynamic[var],type,n,m]

represents between n and m blank editable input fields of the specified type.

Examples

Basic Examples

Create three String InputFields that update the value of var:

In[1]:=
ResourceFunction["ListInputField"][Dynamic[var], String, 3]
Out[1]=
In[2]:=
Dynamic[var]
Out[2]=

Create between three and six String InputFields that update the value of x:

In[3]:=
ResourceFunction["ListInputField"][Dynamic[x], String, 3, 6]
Out[3]=

Options

All InputField options are supported:

In[4]:=
ResourceFunction["ListInputField"][Dynamic[test], String, 3, 6, FieldHint -> "Enter value"]
Out[4]=

Requirements

Wolfram Language 11.3 (March 2018) or above

Resource History

License Information