Hey ODK team,
Is it possible to prevent editing a response before I submit a form ?
I have this question in my form
![]()
Once the user selects one of the options
1.Positive
2.Negative
3. Invalid
I would like to lock in that response and prevent them from editing their answer. Is that possible ?
Here’s what I have tried:
- I added a
read-onlycolumn on thatmalaria_test_resultrow with this value${malaria_test_result_locked} = ‘true’ - On the next row i have a calculate
malaria_test_result_lockedas${malaria_test_result} != '' - I added a debug
Debug: readonly=${malaria_test_result_locked}and I can see the value changes from false to true after selecting an answer formalaria_test_result. - However, even when the value is
true, I can still change my answer formalaria_test_result