Create a conditional validation condition based on user properties

hi All,

i have 2 users with different functions on the commcare mobile app. user A
has function x and user B has function y. The function is captured in a
user property and pulled into the form. i want to make it in such a way
that user A can enter negative values in the form and user B can only enter
values starting from 0.

please help,

thanks

Esther

Esther,

I'm not sure I fully understand your question - when you say the users have
a function do you mean that they're using a form with a number type
question? If so, I think you could accomplish this by having a user
property such as "type" that has value 'A' for user A and 'B' for user B.
Then, the number question could have a validation condition such as:

if(#user/type = 'A', . < 0, . >= 0)

Please let me know if I'm misunderstanding your question.

Cheers,
Will

ยทยทยท On Fri, Jan 20, 2017 at 9:06 AM, wrote:

hi All,

i have 2 users with different functions on the commcare mobile app. user A
has function x and user B has function y. The function is captured in a
user property and pulled into the form. i want to make it in such a way
that user A can enter negative values in the form and user B can only enter
values starting from 0.

please help,

thanks

Esther

--
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.