Modify Form Before Open in ODK

Hi Team,

I am new in odk and Im creating an android application.
My question is How to edit or modify the form before odk open it? I need to put some data of the user like name on one of the question in the form and then open it in odk.

Thank you so much for you help.

Hi @richard1
We're glad you're here. When you get a chance, please introduce yourself on this forum thread. I'd also encourage you to add a real picture as your avatar because it helps build community!

Building your form you can use defaults maybe?
https://xlsform.org/en/#default
https://docs.getodk.org/form-logic/#setting-default-responses

Is that what you need?

2 Likes

Sorry, this is my first time. Im a developer from philippines. How can achieved this in android development? I mean Im creating an mobile app which uses the odk. Once the user is login in my application it automatically fill up the firstname and lastname question base on the person who logged in in my application. Sorry if my question is a little bit confusing. Hope you still understand. Thank you

If you are a developer just investigate how we do that username/phone number/email. We allow setting those values in General Settings -> User and device identity -> Form metadata and then those values might be used in a form automatically: https://docs.getodk.org/form-question-types/#metadata

1 Like