Popup with text input (like entering your password on App Store)

Hi,

I am trying to include a Save button on my app but need the user to enter the filename. My initial thought was to have a popup, prompt for a filename and you clicked Save or Cancel on the popup. But it looks like that isn’t possible (unless am missing something).

At the moment as using native.newTextField and although it works, it looks awful as it just appears (above the save button) when the user clicks save.

Any ideas ?

Dave [import]uid: 117617 topic_id: 21805 reply_id: 321805[/import]

Hey Dave,

I had to do this recently myself; I made a popup (using a new display group so it could easily be cleaned up) and put in the newTextField which worked great.

What exactly do you mean it appears above the save button when the user clicks save? Is this a placement issue or a removal issue or something else?

You can certainly get something like this working well, just need more info.

Peach :slight_smile: [import]uid: 52491 topic_id: 21805 reply_id: 86645[/import]

Sorry Peach, forgot all about this thread.

At the moment I have the text field appearing above the save button, when clicked.

A popup with a textfield would look much nicer.

Dave [import]uid: 117617 topic_id: 21805 reply_id: 87704[/import]

Oh right, so the placement thing is deliberate - sorry, misunderstood.

You should code your own popup, you could make it look like a native one if you wanted to by using your own graphics, etc.

Have it appear when you want the user to enter their info and use groups as mentioned above.

:slight_smile: [import]uid: 52491 topic_id: 21805 reply_id: 87782[/import]

Cheers, it’s something I need to spend sometime on.

At the moment am deciding the filename for them but giving them the option to Email or Post to FB.

Want to put it on the App Store next week, so the popup will have to wait for a bit.

Once am more familiar with Lua and Corona will give it a go and update the App.

Dave [import]uid: 117617 topic_id: 21805 reply_id: 87833[/import]

Dave I am going to have a go today and see if i can create something like your original post described.

[import]uid: 84637 topic_id: 21805 reply_id: 88869[/import]

Cheers Danny.

I have submitted my App to Apple but always looking for ways to improve it.

For the submitted App, I just decided on a fixed name. So as you save a image it just overwrites the old one but give options to email it and/or post it to Facebook.

Dave [import]uid: 117617 topic_id: 21805 reply_id: 88875[/import]