# Element which stores the solution typed by the user

**URL:** <https://forums.ankiweb.net/t/element-which-stores-the-solution-typed-by-the-user/45052>\
**Category:** Help\
**Created:** [May 20, 2024, 10:20am UTC](https://forums.ankiweb.net/t/element-which-stores-the-solution-typed-by-the-user/45052 "2024-05-20T10:20:18Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![rean](https://avatars.discourse-cdn.com/v4/letter/r/e56c9b/32.png) [@rean](https://forums.ankiweb.net/u/rean)\
**Post date:** [May 21, 2024, 6:40am UTC](https://forums.ankiweb.net/t/element-which-stores-the-solution-typed-by-the-user/45052/11 "2024-05-21T06:40:43Z")

</div>

So, here is a screenshot and a short recording of the typing card:

 ![IMG_4038.PNG](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/4/9/49bafe116029a6bb5900195b404c4849f8ed07a7.jpeg)  
 ![RPReplay_Final1716270998-ezgif.com-video-to-gif-converter](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/b/7/b71697a896bd594d2bc32e32a4cba2d77c62b90e.gif)

I think, it is as you describe. I am not familiar with the “type into card” option on android, but on iOS it clearly does not write on the card, but in the text field above.

Before I wrote the post yesterday, I did some testing with the buttons and the JS, and to my understanding, the buttons can be pushed, the on-click event is also triggered and transmitted to the JS and JS function is called. So, I think it would be possible to “store” the typed answer on the screen to show the user what they have typed/ pushed. But the missing element is something to store the pushed button/ typed information from front to back (maybe using the SessionStorage?).

> The fact that it is also mentioned in [the manual alongside AnkiMobile](https://docs.ankiweb.net/templates/fields.html?highlight=typeans#checking-your-answer) makes me think that on iPhone Anki works the same way in this regard.

Yes, on the backside of the card, the `typeans` element can be accessed. It actually stores the answer and seems to work in the indented way (see screen recording.) But on the front it does not exist.

> Without it, even if the rest of the code is fixed, multiple-choice cards will require manually pressing the “Show Answer” button each time after an answer is selected.

I am not too worried about the `showAnswer` functionality. For now I also need to manually click somewhere to flip to the back. If the rest works, I thinks it’s fine. Of course, it would be nice to have, but apparently this functionality is not coming to iOS (according to the post you linked). So, I guess there is nothing we can do about it.

I hope that helps. Let me know, if I can test something (or if you need more screenshots)

---

_[View the full topic](https://forums.ankiweb.net/t/element-which-stores-the-solution-typed-by-the-user/45052)._
