DialogInput[expr]
interactively puts up expr as a dialog notebook, waits until a DialogReturn[e] is evaluated from within it, and then returns the result e.
DialogInput[{x=x0,y=y0,…},expr]
sets up local variables x, y, … in expr.


DialogInput
DialogInput[expr]
interactively puts up expr as a dialog notebook, waits until a DialogReturn[e] is evaluated from within it, and then returns the result e.
DialogInput[{x=x0,y=y0,…},expr]
sets up local variables x, y, … in expr.
Details and Options

- The Wolfram Language kernel in which DialogInput is evaluated will block until the DialogReturn in the dialog is evaluated.
Examples
open all close allScope (2)
Properties & Relations (5)
This uses DialogReturn[] to return from the dialog notebook:
DefaultButton[] can be used instead of an explicit DialogReturn[]:
CancelButton[] implicitly uses DialogReturn[$Canceled]:
Input[] puts up a special dialog window for entering an expression:
InputString[] puts up a special dialog window for entering a string:
Possible Issues (1)
DialogInput blocks the queued evaluation channel, preventing queued controls from working:
Some values of SynchronousUpdating also use the queued channel and are blocked:
For Manipulate, the default value of SynchronousUpdating must be changed for it to work:
Scheduled tasks might not run while the queued evaluation channel is blocked:
Tech Notes
Related Guides
Related Workflows
- Insert a File Path in Input
History
Text
Wolfram Research (2007), DialogInput, Wolfram Language function, https://reference.wolfram.com/language/ref/DialogInput.html.
CMS
Wolfram Language. 2007. "DialogInput." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/DialogInput.html.
APA
Wolfram Language. (2007). DialogInput. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DialogInput.html
BibTeX
@misc{reference.wolfram_2025_dialoginput, author="Wolfram Research", title="{DialogInput}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/DialogInput.html}", note=[Accessed: 23-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_dialoginput, organization={Wolfram Research}, title={DialogInput}, year={2007}, url={https://reference.wolfram.com/language/ref/DialogInput.html}, note=[Accessed: 23-August-2025]}