Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OHRI-2060 File field type documentation #18

Merged
merged 1 commit into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions pages/docs/field-types-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -473,3 +473,27 @@ Renders a repeating group field.
Renders:

![Repeating field](/repeating.png)

## file

Renders a file input control. This allows you to upload files such as images and PDFs. It has options to upload files from computer storage of via camera capture.

```jsx copy
{
"label": "Patient Image",
"type": "obs",
"questionOptions": {
"rendering": "file",
"concept": "7db0c435-5696-4aac-aa78-0ef9941de72b"
},
"id": "patient_image"
},
```

Renders:

![Radio field](/file-upload.png)

![Radio field](/file-uploader.png)

![Radio field](/camera-capture.png)
Binary file added public/camera-capture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/file-upload.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/file-uploader.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading