The Document Viewer field allows the user to View PDF documents in a form while filling it out on a mobile device. Additionally, the Document Viewer field has the option to allow the user to upload a PDF to the field when working from the Web Application or mobile.
Adding a Document Step-By-Step
To upload a document to your form using the document viewer field first log in to the Fastfield Portal and navigate to the Forms tab.
From here you can add the Document Viewer field to your form:
Next you will need to decide whether you want the user to be able to upload a document from their device or have a document already embedded into the form for viewing.
You will need to toggle the "Upload On Device" button in the field options menu. This will indicate if a document is to be preloaded as part of the form or it will be uploaded on the device when filling out the form.
If you want to have an embedded document for users to view inline with the form you will need to uncheck the "Upload On Device" option and manually upload the PDF. Once uploaded your settings menu should reflect this screen where you will be able to preview your uploaded PDF.
Additionally, you may consider hiding this field from you report in the settings.
Configuration
Setting | Description |
---|---|
Field Label | The label displayed for the field. This is usually displayed at the top left corner above the field. |
Field Key | A Key used to reference the field in submission data. The key is also used to reference the field in rules and calculations. |
Upload File | The PDF document that will be displayed to the user. Changes to Re-Upload once a file has been uploaded. |
Field Rules | A Rule or JavaScript snippet that allows you to perform actions on fields or sections within the form. The actions can include hide, show, enable, disable, showSection and hideSection. Rules are executed on field value changes and when the form is opened. ex. if ($field1$ > 23) { hide(); } else { show(); } (Please see the Introduction to Rules Document for more information) |
Hidden | If enabled the field and all labels are not visible. |
Hide Question | Hides the Field Name label. |
Exclude Report | If checked, the field will be excluded from HTML and PDF reports and will also be excluded from Excel and CSV exports. |
Color | Choose a theme to change the background and font colors of the field cell as displayed in the apps. |
Result Data
Data Type | Domain of Values | Example JSON |
---|---|---|
String | File Name of asset on Amazon S3 | { "document_1": "73e0d68e-a648-43e9-9299-518cb81e8359.pdf" } |