Predefined format for data entry

Hi,
I would like to create a text field question but with a specific format to
be followed e.g all the entries for the field should have the format KE/
[month] 2014 / serial number / weight . Is there an option of doing this
and implementing it by adding rules when editing a form?

Thanks.

Geoffrey,

So we don’t support input masking, but we do support the ability to use a
Regular Expession as a constraint, which you can read more about here:
https://confluence.dimagi.com/display/commcarepublic/Common+Logic+and+Calculations

In general, however, groups often find it more useful to collect each
individual value in that kind of string, and then use a hidden value to
compute the final string, as it’s more straightforward and somewhat less
error prone than entering a string with a rigid structure.

-Clayton

··· On Sun, Dec 15, 2013 at 5:49 PM, Geoffrey Muthondu wrote:

Hi,
I would like to create a text field question but with a specific format to
be followed e.g all the entries for the field should have the format KE/
[month] 2014 / serial number / weight . Is there an option of doing this
and implementing it by adding rules when editing a form?

Thanks.


You received this message because you are subscribed to the Google Groups
"CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Thanks, let me have a look at that.

··· On Monday, 16 December 2013 19:26:06 UTC+3, Clayton Sims wrote: > > Geoffrey, > > So we don't support input masking, but we do support the ability to use a > Regular Expession as a constraint, which you can read more about here: > https://confluence.dimagi.com/display/commcarepublic/Common+Logic+and+Calculations > > In general, however, groups often find it more useful to collect each > individual value in that kind of string, and then use a hidden value to > compute the final string, as it's more straightforward and somewhat less > error prone than entering a string with a rigid structure. > > -Clayton > > > On Sun, Dec 15, 2013 at 5:49 PM, Geoffrey Muthondu <soyf...@gmail.com wrote: > >> Hi, >> I would like to create a text field question but with a specific format >> to be followed e.g all the entries for the field should have the format KE/ >> [month] 2014 / serial number / weight . Is there an option of doing this >> and implementing it by adding rules when editing a form? >> >> Thanks. >> >> -- >> >> --- >> You received this message because you are subscribed to the Google Groups >> "CommCare Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to commcare-developers+unsubscribe@googlegroups.com . >> For more options, visit https://groups.google.com/groups/opt_out. >> > >