[ODK2] Prefill a text field


Using ODK2, how to prefill a text field ?
For example, for a voltage, I would like to have “V=” in the text field

Thanks for any help


Dear Karim,

If you want everyone to have the same value, you can do an “assign” prompt for the variable. So in this case, you could assign the text variable q1 to be “V=” right before the text field is displayed and then folks can edit it as needed in the text field (you also put a prompt for q1 text). You generally need to put any assign prompt also in the model sheet (that’s where you tell it that it’s a text field, for example).

This is documented in various spots for XLSX Converter: