AskDisplay[expr]
is a construct for use inside AskFunction that displays the result of evaluating expr in the context of the AskFunction.
AskDisplay
AskDisplay[expr]
is a construct for use inside AskFunction that displays the result of evaluating expr in the context of the AskFunction.
Details
- AskDisplay generates a temporary display that is dismissed by clicking a button.
- Before AskDisplay[expr] displays a result, any inner Ask and related functions will interactively ask for values if the values are not already known.
Examples
open all close allBasic Examples (2)
Use AskDisplay to display messages:
CloudDeploy[AskFunction[AskDisplay["Welcome to TaxReturnPro™!"];Ask[{"income", "How much did you make this year?"} -> "CurrencyAmount"];AskDisplay[ If[Ask["income"] > Quantity[1*10^6, "USDollars"], "whoa!", "puny…"]]]]Messages can themselves contain Ask objects to reference known values:
CloudDeploy[AskFunction[
AskDisplay[
Column[{"Thanks for signing up, here is your signup information:",
"name: " <> Ask[{"name", "What's your name?"} -> "String"], "email: " <> Ask[{"email", "What's your email address?"} -> "EmailAddress"]}]
]
]]Generalizations & Extensions (1)
You can use AskTemplateDisplay if you want to use a StringTemplate or a function as the body:
CloudDeploy[AskFunction[Ask[{"n", "How many sides?"} -> Restricted["Integer", {3, Infinity}]]; AskTemplateDisplay[Graphics[RegularPolygon[#n]]&]]]Related Guides
Related Workflows
- Create a Conversational Interface
History
Text
Wolfram Research (2016), AskDisplay, Wolfram Language function, https://reference.wolfram.com/language/ref/AskDisplay.html.
CMS
Wolfram Language. 2016. "AskDisplay." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/AskDisplay.html.
APA
Wolfram Language. (2016). AskDisplay. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AskDisplay.html
BibTeX
@misc{reference.wolfram_2026_askdisplay, author="Wolfram Research", title="{AskDisplay}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/AskDisplay.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_askdisplay, organization={Wolfram Research}, title={AskDisplay}, year={2016}, url={https://reference.wolfram.com/language/ref/AskDisplay.html}, note=[Accessed: 13-June-2026]}