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 (2) 

Create three String InputField objects 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 input fields that update the value of x:

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

Options (1) 

All InputField options are supported:

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

Publisher

Jon McLoone

Requirements

Wolfram Language 11.3 (March 2018) or above

Version History

  • 1.0.0 – 04 December 2018

License Information