Questions tagged [inputfield]

Questions about the Mathematica control type InputField.

Filter by
Sorted by
Tagged with
1 vote
2 answers
71 views

InputField : only integer or list of integers in a specific range

I'm making a dynamic structure which reads some output from a FEM program (node results). I'd like an inputfield in which I specify the number(s) of the nodes I am interested in. The value of the ...
user avatar
1 vote
0 answers
64 views

How to create a bootstrap style InputField?

I am trying to create a bootstrap style InputField in Mathematica. Here is what I've done so far: ...
user avatar
  • 483
0 votes
1 answer
41 views

How can I create a PasteButton that changes its "contents" dynamically?

I'm trying to make a units palette to help with my various engineering courses. I thought about creating a "meta-palette" of sorts, maybe one that changes on the fly, or one where I can ...
user avatar
1 vote
0 answers
47 views

How to set focus in a dynamic graphic with InputFields

Happy New Year! I am trying to set cursor focus in this timetable application. When the minutes are all entered the activity blocks resize. Tabbing out of the minutes field moves focus to the ...
user avatar
  • 29.1k
2 votes
1 answer
39 views

Accessing InputFields within dynamic graphics without multiple clicks

I'm trying to write a timetable application. (The activity blocks are to be resizable and reorderable.) A problem I have run into, which might be a showstopper for this approach, is that entering ...
user avatar
  • 29.1k
1 vote
1 answer
28 views

InputField and TreeForm problem

I want to use the expression enter by the user and form the Tree, so I did TreeForm[test] as the picture show but it's not working. But if I do it manually, it works. Can anyone explain to me why ...
user avatar
  • 93
0 votes
0 answers
49 views

how to change the background of the Inputfield

I am using 12.1, in the documentation, it says I can change the background of the InputField. I have tried ...
user avatar
4 votes
1 answer
68 views

Focus on `InputField` upon creation? [duplicate]

Let's say we create an input field as InputField[] After hitting enter, the input field appears in the output area below, however the focus in the notebook jumps ...
user avatar
  • 11.5k
0 votes
0 answers
36 views

Initialize Global variables with manipulate

I would like to use the result from a dynamic matrix for calculation, but I don't know how to return a global variable from manipulate. Please help me, I'm new to mathematica. Any suggestion would be ...
user avatar
7 votes
2 answers
152 views

InputField with carriage return in cloud notebooks?

I'm looking for a way of constructing a multi-line InputField in a cloud notebook. That is, a text field that supports the following five behaviors: The 'Enter' ...
user avatar
  • 30.3k
0 votes
1 answer
48 views

"How to create an auto updated FieldCompletionFunction

I'd like to have an InputField with "dynamic" word autocompletion from a list : if I start to type some letters in the field I want the autocomplete suggestion updated. To do that I use the following ...
user avatar
  • 151
3 votes
1 answer
161 views

Updating a Dynamic variable based on another variable's change

In a dynamic interface, I am using a custom replacement for InputField that tracks two things separately: The value of the variable that is input. The boxes that ...
user avatar
  • 2,219
3 votes
2 answers
63 views

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

I'm creating an application with Dynamics for calculating and plotting circular orbits. It allows the user to set a custom radius, giving them an option to either use an InputField as well as a ...
user avatar
  • 33
0 votes
0 answers
60 views

Input field with a value that persists between sessions

Ultimately, I would like to have input field that will remember in front-end its last session value, while its related variable should not be local and should be dynamic. Input field will be put in a ...
user avatar
  • 21
5 votes
1 answer
168 views

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

Context Added to End In a previous question, I was looking for a way for an InputField to maintain the input structure of expressions so as to allow the user's ...
user avatar
  • 2,219
1 vote
2 answers
73 views

InputField with Boxes-held formatting fails inside Dynamic

This is an outgrowth of an earlier question. I have an extensive user interface that has InputFields that I want to hold their specific structure as input by the user (e.g., keeping scientific ...
user avatar
  • 2,219
5 votes
1 answer
128 views

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

I am trying to design a user interface where the specific form that the user enters in InputFields are left unchanged. For example, if the user puts in a number in scientific notation, it would be ...
user avatar
  • 2,219
1 vote
0 answers
68 views

How to create and name variables using Manipulate and InputField?

I have a function F(x1,x2,...,xi;y1,y2,...,yj) such that the xi are the variables and the yj are other parameters (as constants) of the same function. I need that: ...
user avatar
5 votes
1 answer
115 views

Dynamic InputField with syntax highlighting?

I'm trying to create a notebook where a user can enter a Mathematica expression, and its syntax is analyzed (number of tokens, compressed size, etc.). Trying this answer, ...
user avatar
3 votes
3 answers
161 views

Local variables in DynamicModule affected by outside evaluation

I was trying to use DynamicModule to create a Input cell that contains a variable assignment, where the variable name is given ...
user avatar
  • 777
0 votes
0 answers
61 views

FieldCompletionFunction consumes a lot of CPU in Graphics

The output of this code consumes a lot of CPU. Graphics@Inset@InputField[1,FieldCompletionFunction->({"a","b"}&)] I found this occurs when ...
user avatar
  • 1
1 vote
0 answers
31 views

How to open consecutive dialogs [closed]

I am new using mathematica so I would really appreciate your help. I want to open this dialog: ...
user avatar
  • 11
0 votes
1 answer
145 views

How do I size a Manipulate input field when using Control?

I'm building a Manipulate object and I need to reduce the width of the input fields for improved usability. I've tried everything I can, and I don't seem to be able to get it. Everything points to ...
user avatar
1 vote
1 answer
124 views

InputField enabled or disabled with two dynamic variables

Dynamic has been really useful for me but it is as well not easy to understand also. I am doing a calculation where I want some of the input fields enabled or disabled depending on where I am in the ...
user avatar
  • 859
4 votes
1 answer
117 views

Hide part of a CompoundElement in a FormPage

I have a FormPage I am working on that uses CompoundElement to structure the output. In most cases, I want the user to be able ...
user avatar
  • 1,683
1 vote
1 answer
57 views

Is it possible to add a title to the inputfield

I was wondering if it is possible to add a title to InputField As far as I know, you can only add a FieldHint, this one will disappear however as soon as the ...
user avatar
  • 143
3 votes
2 answers
125 views

Colour panel upon condition of an input field

I have something like a "mortgage calculator", and I now want to colour the panel depending on the inputs that the user has made in my input fields. This would be the code: ...
user avatar
  • 143
5 votes
1 answer
112 views

How to speed up a text search widget?

I have an InputField that searches a predefined list for matching strings and displays them in a TextGrid. But when the list is ...
user avatar
  • 30.3k
2 votes
1 answer
152 views

How to save values in dynamic fields?

I created a notebook with this line: Grid[{{InputField[Dynamic[x]], Dynamic[x^2]}}] Then, I filled a certain value instead of "x". Then, I closed Mathematica ...
user avatar
0 votes
1 answer
56 views

Operations with list of numbers via InputField

How do you input a list of numbers via InputField and immediately generate their sum (or whatever other operation involving a list of numbers) underneath. I've ...
user avatar
1 vote
2 answers
190 views

ToExpression with variable from InputField won't work

My code looks like this: Column[{InputField[Dynamic[x], String, ContinuousAction -> True], ToExpression[Dynamic[x]], Dynamic[Head[x]]}] When I intentionally ...
user avatar
0 votes
0 answers
57 views

Manipulating Input Fields/Inputting Single Letters (Edited)

I'm curious whether if there is a method of creating InputFields that are similar to this: I am currently attempting to create a crossword puzzle that has an interface like this, and I found it ...
user avatar
1 vote
1 answer
81 views

Problem with DialogInput and store variable

Writing: ...
user avatar
  • 4,281
1 vote
1 answer
96 views

How to make InputField admit multiple entries

Is there a way to make InputField[] compatible with RepeatingElement or a similar scheme of user interaction? The idea is to ...
user avatar
1 vote
2 answers
90 views

How can I fix this output?

The following segment of code is part of a project I am making and therefore I cannot show all the code. I hope the one below is enough. The input is ...
user avatar
  • 359
4 votes
1 answer
114 views

Automatically updating input or inputfield

Is it feasible to make an input field, that or similar functionality, that could be constantly updated while typing or editing, without clicking Enter button? The example is as follows: ...
user avatar
  • 609
3 votes
1 answer
138 views

Toggle frame color and label on input field

I am attempting to mock up a (somewhat poorly designed) user interface that has input fields that when required AND when the user tries to click OK, changes so that they are outlined in red and show ...
user avatar
0 votes
0 answers
34 views

Enter text with newlines in Inputfield [duplicate]

With InputField we can enter strings or numbers etc. I would like to input a piece of text including newlines, tabs etc. How can I do this? With standard: ...
user avatar
  • 3,600
3 votes
0 answers
83 views

Inputfields with FieldCompletionFunction keeps list active in previous field

I would like to have three inputfields with each their own fieldcompletion list in a row. After choosing an item in the first inputfield (with arrow down followed by an Enter) I want to go to the next ...
user avatar
  • 3,600
3 votes
1 answer
85 views

How do I do calculations with data from user input?

I'm pretty new to mathematica and I'd like to create a little program that takes user input as variables which it then uses to do some calculations. I have the following code: ...
user avatar
  • 33
6 votes
1 answer
240 views

Giving the input focus to a particular input field

A couple of versions of Mathematica ago there was discussion of how one can set focus on a particular input field: How to set focus of a dialog window? http://community.wolfram.com/groups/-/m/t/...
user avatar
  • 333
0 votes
1 answer
151 views

InputField - use later as a function

This is my attempt at trying to write code to do the following. I want the user to Input the function - I then want to create a new function called g[x_] that I can use later to do things like ...
user avatar
5 votes
0 answers
166 views

InputField GUI Glitches

Has anyone observed the following GUI glitches in Mathematica (see screenshots below)? I have noticed this beginning to occur from Mathematica 10 onwards. I've only tested their occurrence with the <...
user avatar
  • 135
0 votes
2 answers
262 views

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

I'm trying to create an n*n matrix that would follow this criteria ...
user avatar
1 vote
3 answers
275 views

how to ask for user defined function using manipulate

Probably this has been asked before, but I could not find an answer. I am trying to create an interactive applet using "Manipulate" that works with a user defined function. I would like to have an ...
user avatar
0 votes
1 answer
337 views

HoldForm, ReleaseHold for inputfield

I am working on creating a CDF file for a calculation where I do high-precision evaluation of functions such as N[func,40]. I wrote a Module that takes user function and rationalize it, this way I ...
user avatar
  • 859
5 votes
1 answer
149 views

Is there a way to configure the Ask function so that input fields can be optional?

I see that FormFunction includes settings that could work, but I can't seem to find any way to get it to work within the "Ask" framework. Related: https://reference.wolfram.com/language/tutorial/...
user avatar
  • 451
1 vote
1 answer
120 views

Run-time user input

A question about run-time data input. I have a notebook that scrapes data from a web site that presents new data every day on a new web page, e.g.: ...
user avatar
  • 3,183
2 votes
2 answers
274 views

Changing threshold for scientific notation from 10^6 so that InputField display is uniform

Related to but different from this question. I'd like my InputField to display scientific notation not only for numbers larger than one million, but also for ...
user avatar
  • 205
-1 votes
1 answer
70 views

InputFields not working updating properly when in a CDF

I have made a calculator and embedded it on my website. It consists of several InputField boxes for inputting equations (x, x^2, 1+x ...). It functions as the notebook does except when the input gets ...
user avatar
  • 43