Restricted Date Format and Limited Decimal Values

Hi,

This might be a noob question but would appreciate the help or guidance
towards the correct path…

a) How can i ensure that the date is being entered in correct format since
some part of the world it is MM/DD/YY and some it is DD/MM/YY. For example
if someone intents to enter 7th March, due to confusion he may end up
entering July 3rd.

b) How can I ensure that in decimal value, user can only enter one digit
after decimal.

Thanks

Hi Tariq,

See answers in line:

a) How can i ensure that the date is being entered in correct format since
some part of the world it is MM/DD/YY and some it is DD/MM/YY. For example
if someone intents to enter 7th March, due to confusion he may end up
entering July 3rd.

Is there a reason you’re having the date entered as a string instead of
using a date type question?

b) How can I ensure that in decimal value, user can only enter one digit
after decimal.

Please see this page on regular expressions in CommCare
https://confluence.dimagi.com/display/commcarepublic/Advanced+Validation+Conditions
.

-Will

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

Actually I am using Date template but in that, the user still has option to
enter the date manually for eg 3/7/2015 for some would be March 7 and for
some would be July 3. So in other words, how can i force the user to use
the calendar in the date format to put in the date.

Never Mind… got the response… was truely a noob question…

Appreciate help!

Regards,
-Tariq