Getting Verified User Phone Number into Form

Hi,

I am trying to get the verified user phone number into a form and have
tried the following to no avail:

instance('commcaresession')/session/context/phone_number
instance('commcaresession')/session/context/phonenumber
instance('commcaresession')/session/context/phone-number

I am sure I am missing something obvious, any help appreciated.

Best

Tim

Hi Tim,

The default phone number field you see when you create a user is not part
of the user data that is available in the app like you referenced.

I would recommend creating a "phone number" field in custom user data
https://help.commcarehq.org/display/commcarepublic/Custom+User+Data.

Thanks,
Amelia

··· On Tue, Jan 20, 2015 at 11:39 AM, Tim wrote:

Hi,

I am trying to get the verified user phone number into a form and have
tried the following to no avail:

instance('commcaresession')/session/context/phone_number
instance('commcaresession')/session/context/phonenumber
instance('commcaresession')/session/context/phone-number

I am sure I am missing something obvious, any help appreciated.

Best

Tim

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

Hi Amelia,

Thanks for this.

The phone number in the app is verified, it would be handy to be able to
keep this functionality.

I will go ahead and create another custom field for our app.

Best

Tim

··· On Wednesday, January 21, 2015 at 9:46:51 PM UTC, Amelia Sagoff wrote: > > Hi Tim, > > The default phone number field you see when you create a user is not part > of the user data that is available in the app like you referenced. > > I would recommend creating a "phone number" field in custom user data > . > > Thanks, > Amelia > > On Tue, Jan 20, 2015 at 11:39 AM, Tim <tim.bu...@gmail.com > wrote: > >> Hi, >> >> I am trying to get the verified user phone number into a form and have >> tried the following to no avail: >> >> instance('commcaresession')/session/context/phone_number >> instance('commcaresession')/session/context/phonenumber >> instance('commcaresession')/session/context/phone-number >> >> I am sure I am missing something obvious, any help appreciated. >> >> Best >> >> Tim >> >> -- >> 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-user...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > >