Hi Everyone,
I have a case management application with tow models.
I would to show First Model to some mobile worker and Second Model to some
mobile workers. Is it possible to do that?
If that not work, I saw that I can put conditions for forms to let them
appear or not by ( Form Display Condition https://confluence.dimagi.com/display/commcarepublic/Form+Display+Conditions),
is it possible to hid these forms if the login in username is ( test ) for
instance? I tried to put a condition #user/username or #user/userid but I
got an error which is on the attachment.
If that not work, I saw that I can put conditions for forms to let them
appear or not by ( Form Display Condition https://confluence.dimagi.com/display/commcarepublic/Form+Display+Conditions),
is it possible to hid these forms if the login in username is ( test ) for
instance? I tried to put a condition #user/username or #user/userid but I
got an error which is on the attachment.
I'm not sure about this error, but here is an expression I'm using in a
different app that you can modify as needed (this uses custom user data
instead of the user case but should also be adaptable to use the
usercase): count(#session/user/data/is_test) > 0 and
(#session/user/data/is_test= 'yes').
If that not work, I saw that I can put conditions for forms to let them
appear or not by ( Form Display Condition https://confluence.dimagi.com/display/commcarepublic/Form+Display+Conditions),
is it possible to hid these forms if the login in username is ( test ) for
instance? I tried to put a condition #user/username or #user/userid but I
got an error which is on the attachment.
I'm not sure about this error, but here is an expression I'm using in a
different app that you can modify as needed (this uses custom user data
instead of the user case but should also be adaptable to use the
usercase): count(#session/user/data/is_test) > 0 and
(#session/user/data/is_test= 'yes').