Calculating based on previous answer and inserting calculation


I have a question:

Q1: For 6 hours of good quality water a day would you be willing to pay the following per month?
Not willing to pay
100,000 LBP
150,000 LBP
200,000 LBP
250,000 LBP
300,000 LBP
350,000 LBP
400,000 LBP
450,000 LBP
500,000 LBP
550,000 LBP
600,000 LBP

And for the next question, I want to multiply chosen amount by 12 and ask for yearly amount:

Q2: Your yearly subscription cost would be {multiply answer Q! * 12}. Would you still be willing to pay?

Is it possible to do such calculation and insert calculated amount into the question?

Many thanks,

@martapiek, you could also do it as outlined in the image shared below:

In the survey tab of your XLSForm:

In the choices tab of your XLSForm:

Image 2

Data entry screen as seen in Enketo: when nothing is selected in Q1

Data entry screen as seen in Enketo: when something is selected in Q1

Reference XLSForm:

Calculation.xlsx (12.8 KB)

1 Like

Thank you, @Kal_Lam !!

1 Like