Skip to main content
9 votes

Enter numbers into a an already existing list

The simplest way is just data = {{1, 2, 3, 4, 5}, {6, 7, 8, 9, 10}}; InputField[Dynamic[data]] Dynamic[data] ...
m_goldberg's user avatar
  • 108k
8 votes
Accepted

Hold[Expression] (or similar) in InputField that truly holds the input unmodified

InputField[Dynamic[var], Boxes] ...
kglr's user avatar
  • 399k
7 votes
Accepted

Dynamic InputField with syntax highlighting?

Here is what you can do: ...
Kuba's user avatar
  • 137k
6 votes

Enter numbers into a an already existing list

Perhaps, something like: inpF = DynamicSetting[Map[InputField[#, FieldSize -> 2, Alignment -> Center]&, #, {-1}]] &; Use it as (...
kglr's user avatar
  • 399k
5 votes
Accepted

How do I create a n*n matrix with a Do loop?

Better to use Table: ...
Chris K's user avatar
  • 20.3k
5 votes
Accepted

Colour panel upon condition of an input field

Try wrapping the Option value in Dynamic: ...
Mr.Wizard's user avatar
  • 272k
5 votes
Accepted

Local variables in DynamicModule affected by outside evaluation

If you work with Boxes you don't have to worry about evaluations: ...
Carl Woll's user avatar
  • 131k
5 votes

Local variables in DynamicModule affected by outside evaluation

Here's a different way to inject the value of name into the cell: ...
Michael E2's user avatar
  • 239k
4 votes

Reading in scientific notation from C++ to Mathematica

For those wishing to transform a full data file with numbers in scientific notation that is output from Fortran (or C, et al.) as "1.6E-19" and ...
straton's user avatar
  • 61
4 votes
Accepted

How to make InputField admit multiple entries

Here's something to start with: ...
Kuba's user avatar
  • 137k
4 votes
Accepted

Automatically updating input or inputfield

You can use the option ContinuousAction->True to get the desired behavior, but this option only works for the Boxes, Number and String types. For example: ...
Carl Woll's user avatar
  • 131k
4 votes

How can I make an InputField with a proper newline/carriage return?

It appears that an undocumented InputFieldBoxOptions -> {"ReturnEntersInput" -> False} does this: ...
Kuba's user avatar
  • 137k
4 votes
Accepted

How to speed up a text search widget?

The bottleneck is the fact that Pane 'cares' about full content even when only the fraction is needed. We need Pane that fits ...
Kuba's user avatar
  • 137k
4 votes
Accepted

Hide part of a CompoundElement in a FormPage

Here's a convenient function for Form* (and other cloud stuff) debugging: ...
b3m2a1's user avatar
  • 47k
4 votes
Accepted

Having three Control Objects for the same Dynamic variable which can override eachother

Note: See also my other answer for a different approach and a discussion of the differences between the two. You can achieve what you want by introducing a helper variable (...
Lukas Lang's user avatar
  • 34.2k
4 votes
Accepted

Focus on `InputField` upon creation?

You can assign a box id to an input field using BoxID -> "id" and use the function FrontEnd`MoveCursorToInputField ...
kglr's user avatar
  • 399k
4 votes
Accepted

How to set up the Enter, Shift+Enter feature in InputField?

Combining your attempt with the technique from this answer: ...
Lukas Lang's user avatar
  • 34.2k
4 votes
Accepted

Dynamic text input of equation for graphing

...
kglr's user avatar
  • 399k
3 votes

How do I create a n*n matrix with a Do loop?

I suggest you define a function, m to create your matrix. Here are two possible for m Carl Woll ...
3 votes

Giving the input focus to a particular input field

So to complement Kuba's answer, digging in the CloudObject source code (because there's that auth dialog) you find that even they still use the BoxID system. Look ...
b3m2a1's user avatar
  • 47k
3 votes
Accepted

Toggle frame color and label on input field

Move the Dynamic on Labeled to the FrameStyle: ...
Michael E2's user avatar
  • 239k
3 votes
Accepted

Problem with DialogInput and store variable

This is how I'd do it: ...
Kuba's user avatar
  • 137k
3 votes

How to save values in dynamic fields?

As @Kuba says in the comments, use DynamicModule with the SaveDefinitions->True option: ...
Carl Woll's user avatar
  • 131k
3 votes

Colour panel upon condition of an input field

You can use Dynamic directives for the Background and BaseStyle options of each ...
MarcoB's user avatar
  • 67.5k
3 votes
Accepted

InputField enabled or disabled with two dynamic variables

...
kglr's user avatar
  • 399k
3 votes
Accepted

InputField, PasteButton, and Check not playing nicely with each other

How about not committing to the assignment if the syntax is not valid: ...
Kuba's user avatar
  • 137k
3 votes
Accepted

Updating a Dynamic variable based on another variable's change

Pardon me if I miss the point, as this looks rather complicated but I'm only giving it a quick look-over. Does it work to move your first If expression inside the <...
Mr.Wizard's user avatar
  • 272k
3 votes
Accepted

"How to create an auto updated FieldCompletionFunction

You have several issues. One is that the list of names contains only a single name ("Steve, Stan"). The other is that you are using f in your function. It would be ...
Carl Woll's user avatar
  • 131k
3 votes
Accepted

Dynamic data filter using InputField

Try: ...
Daniel Huber's user avatar
  • 53.7k
3 votes
Accepted

How to enter the following number to InputDialog form?

You may use the default type of "Expression" for the input field. To eliminate the empty string in the input field, you can set the initial value to: Null. Here is an example: number = ...
Daniel Huber's user avatar
  • 53.7k

Only top scored, non community-wiki answers of a minimum length are eligible