You can write a calculation in the read_only cell of the question. The calculation must evaluate to true or false.
You can find an exemple with the search function of this forum, please, Read_only - how to set dynamically and in the ODK documentation Form Logic - ODK Docs.