Skip to content

Commit

Permalink
fix: clarify user data in form is from user-settings (#1342)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuester committed Apr 9, 2024
1 parent 2971335 commit dc0bcf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/en/apps/guides/forms/form-inputs.md
Expand Up @@ -99,10 +99,10 @@ Contact summary data is not available in `contact` forms or in forms created fro

## `user` data

Both `app` and `contact` forms can access the current user's data at `inputs/user`. The data provided is simply the [CouchDB doc for the user](https://docs.couchdb.org/en/stable/intro/security.html?highlight=org.couchdb.user#users-documents) (e.g. `org.couchdb.user:username`) plus an additional `language` field that contains the user's currently selected language code.
Both `app` and `contact` forms can access the current user's data at `inputs/user`. The data provided is simply the [`user-settings` doc for the user]({{< ref "core/overview/db-schema#users" >}}) (e.g. `org.couchdb.user:username`) plus an additional `language` field that contains the user's currently selected language code.

{{% alert title="Note" %}}
The CouchDB doc for the user is _NOT_ the same as the CHT _contact_ doc for the user.
The `user-settings` doc for the user is _NOT_ the same as the CHT _contact_ doc for the user.
{{% /alert %}}

### Example of saving `user` data as metadata on a report
Expand Down

0 comments on commit dc0bcf8

Please sign in to comment.