Using IF formular in XLSform

i want to use IF formular to display a response base on a previous response e.g
Total supervisors per facility (tatale=4, sanguli=3, nahu=7)
Q1 facility name? choices are tatale, sanguli, nahu
Q2 Total supervisors to select in ${Q1} is

so if the data collector selects sanguli in Q1, then Q2 should display as 3

i want to use IF formular to display a response base on a previous response e.g
Total supervisors per facility (tatale=4, sanguli=3, nahu=7)
Q1 facility name? choices are tatale, sanguli, nahu
Q2 Total supervisors to select in ${Q1} is

so if the data collector selects sanguli in Q1, then Q2 should display as 3

Welcome back to the community, @yendor! You could do this 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:

Image 3

Reference XLSForm:

if-statement.xlsx (11.6 KB)

thanks sir

1 Like