clearButtonMode for native.newTextField

Hi
users of our apps are able to enter their names via native.newTextField / “userInput”-event

For the sake of usability they also should be able to clear the text field by tapping on that standard “X”-button, wich is a built-in attribute for UITextField:
http://stackoverflow.com/questions/320078/adding-the-clear-button-to-an-iphone-uitextfield

Is there any way to activate that X for native.newTextField ? [import]uid: 70635 topic_id: 31133 reply_id: 331133[/import]

I don’t think there is a way to activate that button but you could add your own button and onClearTap() set textfield.text = “” [import]uid: 138389 topic_id: 31133 reply_id: 124600[/import]

The above is correct for the time being, though I’d encourage you to post about this in feature request/roadmap sub forum if it is a feature that’s important to you. [import]uid: 52491 topic_id: 31133 reply_id: 124666[/import]

allright, thank you. I will add this to the feature requests. [import]uid: 70635 topic_id: 31133 reply_id: 124873[/import]

I don’t think there is a way to activate that button but you could add your own button and onClearTap() set textfield.text = “” [import]uid: 138389 topic_id: 31133 reply_id: 124600[/import]

The above is correct for the time being, though I’d encourage you to post about this in feature request/roadmap sub forum if it is a feature that’s important to you. [import]uid: 52491 topic_id: 31133 reply_id: 124666[/import]

allright, thank you. I will add this to the feature requests. [import]uid: 70635 topic_id: 31133 reply_id: 124873[/import]