
You know that feeling when you have a coding problem and then you find that there exists an object or method or property that gives you the exact thing you need?
I was building an ice breaker app for our next CodeJam (by the way, you can request an SAP Build or any CodeJam anywhere in the world on our CodeJam page). I created a form to let people answer some fun questions about themselves, and then display everyone's answer.
Now when I clicked the "Tell Everybody" button, the data was submitted. But if the user did not explicitly dismiss the keyboard, it remained, and this to me was really annoying, especially since there seemed no button in the keyboard to dismiss itself and it scrolled the page so I couldn't see most of it.
To my good fortune, there is a somewhat lesser known "Dismiss Keyboard" flow function, that does exactly what I needed. You'll have to import from the Marketplace.
And I could put it right after I handle the (successful) submit button click.
Now, after the user submits the form, the keyboard goes away and I can see the entire page again.
ββ
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
10 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 | |
3 | |
2 |