Password setting in xlsform ODK

How can I create a password on the xlsform that ODK collect app users should enter when they start entering the data?

Hi @Tewodrosw ,

Welcome to the ODK community forum. When you get a chance please take some time to introduce yourself here.

You can create a text question at the begining of your form and set a contraint that needs to match a password.
This password is visible into the xlsform but not easy to find for the enumerator.
You can delete the duplicated post in the developpement category.

1 Like

Dear @ mathieubossaert,
thanks for the quick reply!
what will be the constraint for this?
And I want enumerators to be given the password ones and every time they enter the data it should be required to write.

It would be something like this:
password_protected_group.xlsx (5.7 KB)

as @mathieubossaert said

If this is a big problem you can try to encode your password with base64 see:
password_protected_group2.xlsx (5.7 KB)
The logic responsible for displaying/hiding questions is:
${password}=base64-decode(‘cXdlcnR5’) where cXdlcnR5 is the same password used in the first form (qwerty) but encoded with base64 (you can use an online tool to do that This is also not a perfect solution because it's only encoding (not encryption) and if someone knows how to decode it then they can find the password.

1 Like
1 Like