Assigning Custom User Data

Hello,
I have created Custom User Data fields called:

  1. FacilityID, 2) FacilityName, and 3) Denomination.

On my form I have assigned these to Hidden Values as follows:
Hidden Value 1: FacilityCode
On the Calculate condition I have the following:
instance(‘commcaresession’)/session/user/data/FacilityID

Hidden Value 2: FacName
instance(‘commcaresession’)/session/user/data/FacilityName

I get the Error Message shown below when I try to run the app.

Please what am I doing wrong?

Yaw

Yaw,

Have you synced the user since setting the custom data properties? Your
user will need to sync in order to receive those values.

Cheers,
Will

··· On Tue, Apr 11, 2017 at 1:39 AM, YAW ANTWI-ADJEI wrote:

Hello,
I have created Custom User Data fields called:

  1. FacilityID, 2) FacilityName, and 3) Denomination.

On my form I have assigned these to Hidden Values as follows:
Hidden Value 1: FacilityCode
On the Calculate condition I have the following:
instance(‘commcaresession’)/session/user/data/FacilityID

Hidden Value 2: FacName
instance(‘commcaresession’)/session/user/data/FacilityName

I get the Error Message shown below when I try to run the app.

Please what am I doing wrong?

Yaw


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 Will,
Great. I synced and it is working now.

Thank you once more for your support.

Yaw​

··· On 11 April 2017 at 06:52, William Pride wrote:

Yaw,

Have you synced the user since setting the custom data properties? Your
user will need to sync in order to receive those values.

Cheers,
Will

On Tue, Apr 11, 2017 at 1:39 AM, YAW ANTWI-ADJEI yawantwiadjei@gmail.com wrote:

Hello,
I have created Custom User Data fields called:

  1. FacilityID, 2) FacilityName, and 3) Denomination.

On my form I have assigned these to Hidden Values as follows:
Hidden Value 1: FacilityCode
On the Calculate condition I have the following:
instance(‘commcaresession’)/session/user/data/FacilityID

Hidden Value 2: FacName
instance(‘commcaresession’)/session/user/data/FacilityName

I get the Error Message shown below when I try to run the app.

Please what am I doing wrong?

Yaw


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.


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.