Disable choosing an image, video or audio

@issa I totally understand where you're coming from and agree that we should be really mindful of when appearances are and aren't appropriate. In this case, I don't see any great alternatives. For any of these media types, the type declared on the bind is binary. The control they use is all upload and it's a combination of mediatype and appearance that determines how they are displayed to the user. Given this existing setup, do you see any good alternatives?

I agree that we have to communicate much more clearly what appearances are and how they are treated by clients (Collect, Enketo, etc). We could say something like "Unknown appearances are ignored and the expected kind of data is still captured. If a certain appearance is important for your data collection, you should make sure that it is supported by all of the versions of ODK Collect or other clients that you use." We should also document the versions at which different appearances started being supported.

@Neil_Penman, you are absolutely correct about Collect being inconsistent in how it identifies appearances. That's something we should rectify for consistency. I don't think it has any effect on behavior currently, though.

I don't quite understand the list of appearances you have included. Currently, audio and video do not support any appearances. images by default can be picked from a camera app (either front or back camera) or the file system. They additionally support these appearances:

  • annotate
  • draw
  • signature

We need to introduce the following appearances:

  • hides the button to choose pictures but lets users take pictures from either camera
  • hides the button to choose videos but lets users take video from either camera
  • hides the button to choose audio
  • hides the button to choose pictures and only lets the user use the front camera
  • hides the button to choose pictures and only lets the user use the rear camera

Ideally this could be addressed with three new appearances since the first three in the list above are the same applied to different mediatypes.