Display label instead of a value from a previous question

I have confuse that how do i set the value of the number/text repeat as that field of the previous record,

If I understood you correctly, you are looking at an option of using response from a previous question to appear as part of the text in the next question.? If that is the case an example would be:
Q1. What is the name of your youngest child?
Q2. What is the age of ${Q1} i.e. your youngest child?

As you have seen in the above example , one can reference a previous question by putting the question in Q{nameofquestiongoeshere}

I hope this answers your question. If not, please provide a detailed explanation of what exactly is your problem so that we address it.


1 Like

Thanks Stephanealoo,
I would like to know that: i have question 1 and question 1 is the almost value of many records. When i entry data, the quetion 1 is repeat again that value when i already entry it the previous records. So i dont need to entry it, i pass it, and it is safe time for us.

Hi. It seems to me that it is not possible, but ¿what if we want to re-use not a previously entered value but its label?

Hi @sociedadcivilcuba,

Welcome back to the community! You could do the same as outlined in the image below:

In the survey tab of your xlsform:
Image 1

In the choices tab of your xlsform:
Image 2

Data entry screen as seen in Enketo:

Reference xlsform:
jr choice name.xlsx (11.0 KB)

Have a great day!


Thanks for your prompt answer Kal_Lam.
(I tried an easy way of getting that on kobo, just writing something similar to ${Q1}, without success ;(
Thank you very much!

1 Like

Do you mean you still have the issue or it is now working perfectly

Oh, it is working perfectly! I learnt how to do it (thanks to the sample XLSForm provided by Kay_Lam). Sorry for not letting you know that I solved my problem!