Page 1 of 1

Disable Edit of visible item

Posted: February 19th, 2019, 7:30 am
by sined34
Hi,
I'm creating a CSPro capi data entry app and i have one issue since long time.
I want to disable editing of an item but this item must be visible to the interviewer for chek information.
I have tried onfocus + killfocus but this item still editable.

Thank you so much.

Re: Disable Edit of visible item

Posted: February 26th, 2019, 4:09 pm
by aaronw
Here are two simple approaches:
  • Make the item protected, but view it in the case tree
  • Remove the item from the form, but display it in a warning message

Re: Disable Edit of visible item

Posted: February 27th, 2019, 4:18 am
by josh
In addition to the options Aaron mentioned there is a third approach which is to make it protected and display it in the question text of another item. We often do this with confirmation questions. For example if there a series of questions about births for a women (number of live male births, live female births, male children deceased, female children deceased,...) then we add a yes/no question "Confirm total births" where the question text asks "This means that %NAME% had %TOTAL_BIRTHS% births total. Is that correct?" with responses "Yes" and "No". TOTAL_BIRTHS is a dictionary variable where the field is protected or is not on the form or TOTAL_BIRTHS is a global logic variable. We calculate the value of TOTAL_BIRTHS based on the answers to the earlier fertility questions. This way TOTAL_BIRTHS is not editable but the interviewer can check the value.