Significant Digits in CommCare

Hi, Latika,

There is some information about this on our help site:
https://wiki.commcarehq.org/display/commcarepublic/Common+Logic+and+Calculations#CommonLogicandCalculations-RequireSignificantFiguresforNumericInputs

You will want to follow the first example but with the addition of one
extra digit.

Put the following as the validation:

“regex(., ‘$[0-9]*.[0-9][0-9][0-9]^’ )”

As noted on the help site, you will need to set the question type to
"text". By editing the xml you can make the number keyboard show on the
screen, instead of the alphabetic keyboard. You need to find the question
in the “Edit Source XML” box and add appearance = “numeric” as below:

Try that and let us know how it goes!

Jeremy

··· On Mon, May 13, 2013 at 5:05 AM, Latika Sb wrote:

Decimal question Type for baby Weight ----- We need 4 digit answer, for
e.g 2.350

Now suggest what & how to do???

Thanks
Regards
Latika
SNEHA, Mumbai

Jeremy et al,

You can also create Numeric String input types in the CommCareHQ Form
Editor by selecting “Phone number or ID” as the question type. You no
longer need to edit the form by hand.

-Clayton

··· On Mon, May 13, 2013 at 10:50 AM, Jeremy Wacksman wrote:

Hi, Latika,

There is some information about this on our help site:

https://wiki.commcarehq.org/display/commcarepublic/Common+Logic+and+Calculations#CommonLogicandCalculations-RequireSignificantFiguresforNumericInputs

You will want to follow the first example but with the addition of one
extra digit.

Put the following as the validation:

“regex(., ‘$[0-9]*.[0-9][0-9][0-9]^’ )”

As noted on the help site, you will need to set the question type to
"text". By editing the xml you can make the number keyboard show on the
screen, instead of the alphabetic keyboard. You need to find the question
in the “Edit Source XML” box and add appearance = “numeric” as below:

Try that and let us know how it goes!

Jeremy

On Mon, May 13, 2013 at 5:05 AM, Latika Sb latikasb007@gmail.com wrote:

Decimal question Type for baby Weight ----- We need 4 digit answer, for
e.g 2.350

Now suggest what & how to do???

Thanks
Regards
Latika
SNEHA, Mumbai


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/groups/opt_out.

Jeremy et al,

You can also create Numeric String input types in the CommCareHQ Form
Editor by selecting “Phone number or ID” as the question type. You no
longer need to edit the form by hand.

-Clayton

Hi, Latika,

There is some information about this on our help site:

https://wiki.commcarehq.org/display/commcarepublic/Common+Logic+and+Calculations#CommonLogicandCalculations-RequireSignificantFiguresforNumericInputs

You will want to follow the first example but with the addition of one
extra digit.

Put the following as the validation:

“regex(., ‘$[0-9]*.[0-9][0-9][0-9]^’ )”

As noted on the help site, you will need to set the question type to
"text". By editing the xml you can make the number keyboard show on the
screen, instead of the alphabetic keyboard. You need to find the question
in the “Edit Source XML” box and add appearance = “numeric” as below:

Try that and let us know how it goes!

Jeremy

Decimal question Type for baby Weight ----- We need 4 digit answer, for
e.g 2.350

Now suggest what & how to do???

Thanks
Regards
Latika
SNEHA, Mumbai


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/groups/opt_out.


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/groups/opt_out.

Hi, Sir

I followed ur instruction !!! But when i depoly & update forms on the
keypad Dot (.) not shown ?

··· On Mon, May 13, 2013 at 9:17 PM, Clayton Sims wrote: > On Mon, May 13, 2013 at 10:50 AM, Jeremy Wacksman wrote: >> On Mon, May 13, 2013 at 5:05 AM, Latika Sb wrote:

Hi, Latika,

Sorry for the confusion- I think you cannot use the shortcut that Clayton
recommended as that only works for long integer numbers. In order to see
the (.) I think you will need to do the manual editing process I described.

Jeremy

··· On Tue, May 14, 2013 at 2:40 AM, Latika Sb wrote:

On Mon, May 13, 2013 at 9:17 PM, Clayton Sims csims@dimagi.com wrote:

Jeremy et al,

You can also create Numeric String input types in the CommCareHQ Form
Editor by selecting “Phone number or ID” as the question type. You no
longer need to edit the form by hand.

-Clayton

On Mon, May 13, 2013 at 10:50 AM, Jeremy Wacksman jwacksman@dimagi.comwrote:

Hi, Latika,

There is some information about this on our help site:

https://wiki.commcarehq.org/display/commcarepublic/Common+Logic+and+Calculations#CommonLogicandCalculations-RequireSignificantFiguresforNumericInputs

You will want to follow the first example but with the addition of one
extra digit.

Put the following as the validation:

“regex(., ‘$[0-9]*.[0-9][0-9][0-9]^’ )”

As noted on the help site, you will need to set the question type to
"text". By editing the xml you can make the number keyboard show on the
screen, instead of the alphabetic keyboard. You need to find the question
in the “Edit Source XML” box and add appearance = “numeric” as below:

Try that and let us know how it goes!

Jeremy

On Mon, May 13, 2013 at 5:05 AM, Latika Sb latikasb007@gmail.comwrote:

Decimal question Type for baby Weight ----- We need 4 digit answer, for
e.g 2.350

Now suggest what & how to do???

Thanks
Regards
Latika
SNEHA, Mumbai


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/groups/opt_out.


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/groups/opt_out.

Hi, Sir

I followed ur instruction !!! But when i depoly & update forms on the
keypad Dot (.) not shown ?


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/groups/opt_out.


Jeremy Wacksman
Dimagi http://www.dimagi.com, Inc.
(+001) 434.962.4098 | EST

Sir , We try our best but not working [?]

··· On Tue, May 14, 2013 at 6:06 PM, Jeremy Wacksman wrote:

Hi, Latika,

Sorry for the confusion- I think you cannot use the shortcut that Clayton
recommended as that only works for long integer numbers. In order to see
the (.) I think you will need to do the manual editing process I described.

Jeremy

On Tue, May 14, 2013 at 2:40 AM, Latika Sb latikasb007@gmail.com wrote:

On Mon, May 13, 2013 at 9:17 PM, Clayton Sims csims@dimagi.com wrote:

Jeremy et al,

You can also create Numeric String input types in the CommCareHQ Form
Editor by selecting “Phone number or ID” as the question type. You no
longer need to edit the form by hand.

-Clayton

On Mon, May 13, 2013 at 10:50 AM, Jeremy Wacksman jwacksman@dimagi.comwrote:

Hi, Latika,

There is some information about this on our help site:

https://wiki.commcarehq.org/display/commcarepublic/Common+Logic+and+Calculations#CommonLogicandCalculations-RequireSignificantFiguresforNumericInputs

You will want to follow the first example but with the addition of one
extra digit.

Put the following as the validation:

“regex(., ‘$[0-9]*.[0-9][0-9][0-9]^’ )”

As noted on the help site, you will need to set the question type to
“text”. By editing the xml you can make the number keyboard show on
the screen, instead of the alphabetic keyboard. You need to find the
question in the “Edit Source XML” box and add appearance = “numeric” as
below:

Try that and let us know how it goes!

Jeremy

On Mon, May 13, 2013 at 5:05 AM, Latika Sb latikasb007@gmail.comwrote:

Decimal question Type for baby Weight ----- We need 4 digit answer,
for e.g 2.350

Now suggest what & how to do???

Thanks
Regards
Latika
SNEHA, Mumbai


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/groups/opt_out.


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/groups/opt_out.

Hi, Sir

I followed ur instruction !!! But when i depoly & update forms on the
keypad Dot (.) not shown ?


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/groups/opt_out.


Jeremy Wacksman
Dimagi http://www.dimagi.com, Inc.
(+001) 434.962.4098 | EST


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/groups/opt_out.

Hi Latika,

If you use the “report an issue” button on the page with the problematic
form, and give us details about the problem there, we can look deeper into
the issue.

Thanks,
Amelia

··· On Wed, May 15, 2013 at 2:26 AM, Latika Sb wrote:

Sir , We try our best but not working [?]

On Tue, May 14, 2013 at 6:06 PM, Jeremy Wacksman jwacksman@dimagi.comwrote:

Hi, Latika,

Sorry for the confusion- I think you cannot use the shortcut that Clayton
recommended as that only works for long integer numbers. In order to see
the (.) I think you will need to do the manual editing process I described.

Jeremy

On Tue, May 14, 2013 at 2:40 AM, Latika Sb latikasb007@gmail.com wrote:

On Mon, May 13, 2013 at 9:17 PM, Clayton Sims csims@dimagi.com wrote:

Jeremy et al,

You can also create Numeric String input types in the CommCareHQ Form
Editor by selecting “Phone number or ID” as the question type. You no
longer need to edit the form by hand.

-Clayton

On Mon, May 13, 2013 at 10:50 AM, Jeremy Wacksman <jwacksman@dimagi.com wrote:

Hi, Latika,

There is some information about this on our help site:

https://wiki.commcarehq.org/display/commcarepublic/Common+Logic+and+Calculations#CommonLogicandCalculations-RequireSignificantFiguresforNumericInputs

You will want to follow the first example but with the addition of one
extra digit.

Put the following as the validation:

“regex(., ‘$[0-9]*.[0-9][0-9][0-9]^’ )”

As noted on the help site, you will need to set the question type to
“text”. By editing the xml you can make the number keyboard show on
the screen, instead of the alphabetic keyboard. You need to find the
question in the “Edit Source XML” box and add appearance = “numeric” as
below:

Try that and let us know how it goes!

Jeremy

On Mon, May 13, 2013 at 5:05 AM, Latika Sb latikasb007@gmail.comwrote:

Decimal question Type for baby Weight ----- We need 4 digit answer,
for e.g 2.350

Now suggest what & how to do???

Thanks
Regards
Latika
SNEHA, Mumbai


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/groups/opt_out.


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/groups/opt_out.

Hi, Sir

I followed ur instruction !!! But when i depoly & update forms on the
keypad Dot (.) not shown ?


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/groups/opt_out.


Jeremy Wacksman
Dimagi http://www.dimagi.com, Inc.
(+001) 434.962.4098 | EST


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/groups/opt_out.


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/groups/opt_out.

Hi,

This may be a problem with the keyboard installed on your phone. On our
test device we see the “.” character when inputting numeric strings. You
may need to swipe or go to a secondary screen to see the “.” character on
the keyboard.

What model of phone are you currently using?

-Clayton

··· On Wed, May 15, 2013 at 2:26 AM, Latika Sb wrote:

Sir , We try our best but not working [?]

On Tue, May 14, 2013 at 6:06 PM, Jeremy Wacksman jwacksman@dimagi.comwrote:

Hi, Latika,

Sorry for the confusion- I think you cannot use the shortcut that Clayton
recommended as that only works for long integer numbers. In order to see
the (.) I think you will need to do the manual editing process I described.

Jeremy

On Tue, May 14, 2013 at 2:40 AM, Latika Sb latikasb007@gmail.com wrote:

On Mon, May 13, 2013 at 9:17 PM, Clayton Sims csims@dimagi.com wrote:

Jeremy et al,

You can also create Numeric String input types in the CommCareHQ Form
Editor by selecting “Phone number or ID” as the question type. You no
longer need to edit the form by hand.

-Clayton

On Mon, May 13, 2013 at 10:50 AM, Jeremy Wacksman <jwacksman@dimagi.com wrote:

Hi, Latika,

There is some information about this on our help site:

https://wiki.commcarehq.org/display/commcarepublic/Common+Logic+and+Calculations#CommonLogicandCalculations-RequireSignificantFiguresforNumericInputs

You will want to follow the first example but with the addition of one
extra digit.

Put the following as the validation:

“regex(., ‘$[0-9]*.[0-9][0-9][0-9]^’ )”

As noted on the help site, you will need to set the question type to
“text”. By editing the xml you can make the number keyboard show on
the screen, instead of the alphabetic keyboard. You need to find the
question in the “Edit Source XML” box and add appearance = “numeric” as
below:

Try that and let us know how it goes!

Jeremy

On Mon, May 13, 2013 at 5:05 AM, Latika Sb latikasb007@gmail.comwrote:

Decimal question Type for baby Weight ----- We need 4 digit answer,
for e.g 2.350

Now suggest what & how to do???

Thanks
Regards
Latika
SNEHA, Mumbai


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/groups/opt_out.


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/groups/opt_out.

Hi, Sir

I followed ur instruction !!! But when i depoly & update forms on the
keypad Dot (.) not shown ?


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/groups/opt_out.


Jeremy Wacksman
Dimagi http://www.dimagi.com, Inc.
(+001) 434.962.4098 | EST


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/groups/opt_out.


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/groups/opt_out.