# Saving answers

**URL:** <https://forum.getodk.org/t/saving-answers/1153>\
**Category:** Development\
**Created:** [March 9, 2012, 10:19pm UTC](https://forum.getodk.org/t/saving-answers/1153 "2012-03-09T22:19:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yanokwa](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/yanokwa/32/1695_2.png) [@yanokwa](https://forum.getodk.org/u/yanokwa)\
**Post date:** [March 9, 2012, 10:19pm UTC](https://forum.getodk.org/t/saving-answers/1153/1 "2012-03-09T22:19:29Z")

</div>

This looks like it's in Collect, not Clinic. Depends on what version  
you are using, but generally, the save code sits in the  
FormEntryActivity.

On swipe, you call showNextView(), which calls  
saveAnswersForCurrentScreen(), which calls saveAnswer(). Depending on  
what you want to do, one of those methods in FormEntryActivity is what  
you want.

> **···**
>
> ---------- Forwarded message ---------- \> I am modifying a little bit Clinic, but I got stuck (I had no experience \> before). \> \> I see you can read the answer in a view when it is a question \> "((QuestionView) mCurrentView).getAnswer();" \> \> What I need is to set an answer using code, is there a setAnswer method?
