# Ask the user to enter Text

**URL:** <https://forum.xojo.com/t/ask-the-user-to-enter-text/18146>\
**Category:** General\
**Created:** [July 24, 2014, 7:19am UTC](https://forum.xojo.com/t/ask-the-user-to-enter-text/18146 "2014-07-24T07:19:10Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [July 27, 2014, 12:21pm UTC](https://forum.xojo.com/t/ask-the-user-to-enter-text/18146/21 "2014-07-27T12:21:05Z")

</div>

[quote=115351:@Paul Sondervan]There was another thread about popovers in the past.  
Maybe this one has a solution you can use.  
[Popovers](https://forum.xojo.com/3922-popovers)[/quote]

It’s there I found out about Bill solution. After having created my own posted there for Windows, much cruder 😉

---

<div class="post-metadata">

**Author:** ![Axel\_Schneider](https://forum.xojo.com/user_avatar/forum.xojo.com/axel_schneider/32/465_2.png) [@Axel\_Schneider](https://forum.xojo.com/u/Axel_Schneider)\
**Post date:** [September 12, 2014, 11:37pm UTC](https://forum.xojo.com/t/ask-the-user-to-enter-text/18146/22 "2014-09-12T23:37:57Z")

</div>

This is a ‘Fake PopUp’ that I made for OSX

[FakePopup](http://www.axel-erfurt.de/apps/fakepopwin.zip)

![](http://www.axel-erfurt.de/apps/popupfake1.png)

---

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [September 14, 2014, 7:46am UTC](https://forum.xojo.com/t/ask-the-user-to-enter-text/18146/23 "2014-09-14T07:46:28Z")

</div>

Thank you Axel, all, for your answers.

I totally forgot that Conversation and re-discover it minutes ago (thanks to Axel).

I will re-read it in the afternoon at nap time.

---

<div class="post-metadata">

**Author:** ![Axel\_Schneider](https://forum.xojo.com/user_avatar/forum.xojo.com/axel_schneider/32/465_2.png) [@Axel\_Schneider](https://forum.xojo.com/u/Axel_Schneider)\
**Post date:** [October 17, 2015, 9:36pm UTC](https://forum.xojo.com/t/ask-the-user-to-enter-text/18146/24 "2015-10-17T21:36:51Z")

</div>

… a year later

[FakeTitleBar](https://xojo.io/6154aaa0db33)

![](https://xojo.io/82bf0adaef98)

---

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [October 18, 2015, 9:01am UTC](https://forum.xojo.com/t/ask-the-user-to-enter-text/18146/25 "2015-10-18T09:01:50Z")

</div>

Nice !

I will get an eye on it.

Not native yet (I may be waiting it to be native years ago).

I do not know if I like to use PopOver(s), but if native, I would have used widely since most of the time we only need a simple and convenient way to get data from the user.

In AppleScript there is DisplayDialog (like MsgBox), but parameters are here to modify it to be InputDialog (nothing similar in Xojo), easilly, so easilly !

---

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [October 18, 2015, 9:32am UTC](https://forum.xojo.com/t/ask-the-user-to-enter-text/18146/26 "2015-10-18T09:32:50Z")

</div>

> [@221557:@Emile Schwarz](#):
>
> In AppleScript there is DisplayDialog (like MsgBox), but parameters are here to modify it to be InputDialog (nothing similar in Xojo), easilly, so easilly !

Somehow we tend to forget AppleScript is extremely simple to use in Xojo :

Save this script as inputDialoG.scpt and drag into the project :

`on run {question}
	set reponse to the text returned of (display dialog question default answer "")
	return reponse as text
end run`

Call as :

```auto
Dim Response as String = inputDialog("Enter some text")
```

This code is cool in the MAS as it does not tap into system events.

Of course AppleScript is not cross platform, so designing a small window with a label TextField and a button should not be out of reach of even a Xojo beginner 😉

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 5:20pm UTC](https://forum.xojo.com/t/ask-the-user-to-enter-text/18146/27 "2020-10-29T17:20:43Z")

</div>



[Previous page](https://forum.xojo.com/t/ask-the-user-to-enter-text/18146.md?page=1)
