I’d like to have a field (e.g. text field or integer), but don’t want to show it on the form

Maybe you could do the following workaround using the disabled feature as outlined in the steps shown below:

  • Create a survey form with a disabled column and mark TRUE to all those questions that you do not wish to make it visible for the enumerators.
    image
    You could also use the following xlsform:
    Disabled.xlsx (9.6 KB)

  • Now deploy the survey project.

  • Collect data and submit them to the server. You should see the disabled column in the dataset. Sample of how it would look:

  • Now, if you wish to make entries to the disabled questions while editing or collecting data you could simply make a small edit by removing the TRUE from the disabled column as outlined in the image shown below:
    image
    You could use the following xlsform:
    Disabled.xlsx (9.6 KB)

  • Now replace the xlsform that you have edited and then redeploy.

  • You will now be able to add comments to those variables that you had disabled previously.

3 Likes