Anyone know if there is a way to have a question display only if a specific
user is logged in (without asking 'Are you...?')?
Thanks,
Alicea
Anyone know if there is a way to have a question display only if a specific
user is logged in (without asking 'Are you...?')?
Thanks,
Alicea
Hey Alicea,
You can use custom user data within a form to access information about the
user and use it in display conditions.
https://confluence.dimagi.com/display/commcarepublic/Custom+User+Data
For example, to only display a question if someone is from a particular
village, you can use something like this:
count(instance('commcaresession')/session/user/data/village) > 0 and
instance('commcaresession')/session/user/data/village = 'Boston'
Thanks,
Sheel
Anyone know if there is a way to have a question display only if a
specific user is logged in (without asking 'Are you...?')?Thanks,
Alicea--
You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Sheel Shah
Project Manager | Dimagi
m: +1.781.428.5419 | skype: sheel_shah