Difference between revisions of "Custom Field Type: Upload - Single File Storage"

From SmartWiki
Jump to: navigation, search
(See Also)
Line 102: Line 102:
 
==See Also==
 
==See Also==
 
* [[:Category:PDF]]
 
* [[:Category:PDF]]
 +
* [[Indexing Multiple and Single File Fields]]
 
* [[Validating File Attributes]]
 
* [[Validating File Attributes]]
 
* [[Custom Field Type: Link – Multiple Files]]
 
* [[Custom Field Type: Link – Multiple Files]]
  
 
{{CustomFieldPageFooter}}[[Category:Files]]
 
{{CustomFieldPageFooter}}[[Category:Files]]

Revision as of 09:33, 5 September 2013

Click here to peruse our selection of custom fields.

Field Display

Cf27.png


Stores a single file into a single field. This field type is used to store a single uploaded document.

Field Options

General

Field Options

Option Description Format
Custom Field ID The unique ID number associated with the custom field. Not Applicable
Field Type The list of available Field Types. @fieldtype@
Field Name The name of the field, used internally to reference the user's input; @fieldname@
Caption  The leading question or prologue before the field. @caption@
Display Order  The order (relative to other fields) in which this field is displayed. @displayorder@
Description Definition and general description of the custom field. Will not be displayed. @description@
Note: Changes to file name, upload date and user name only are tracked. File versions are not retained.
  • Label Display: Determines the location of the field caption. Options include: Left of Field, Above Field, No Caption, Hide Caption. Note: this option was previously called Label Display. (See examples here.)
  • On New Record: Controls how the field should be displayed until record has been saved once.
    • Always Display: Field will be exposed both before and after the record is saved.
    • Hide on New Record: Field will be hidden until record is saved.
    • Only Show on New Record: Field will be exposed until record is saved, and then it will be hidden. This option is useful for fields that provide instructions for filling out forms before saving.
  • SmartField View - Include or exclude this field from SmartField Views (@SmartFields@) or only display this field for SmartField Views. See SmartField View for further details.
  • Visibility Condition: See the Visibility Condition Wiki page.
  • Field Permission Matrix: See the Field Permission Matrix Wiki page.

File Options

Security Options

  • Allow External Access - if there is an externally enabled report that includes a file in this Single File field, anyone viewing the report will be able to click on the file name listed on the report for this Single File field and view the underlying file.
  • Enable Online Editing - when enabled an edit button will appear next to the document in this field that will allow users to edit the document online. When the changes are saved the updated document will automatically be saved back into the appropriate Single File field. (Note: documents with special characters such as apostrophes in the file name may not be editable) See Online File Editing.
  • Real-Time Virus Scan - Performs virus scan on uploaded documents.

Other Options

  • File Indexing – enabled file indexing and full text searching using the Lucene full text search engine, which is built into SmartSimple.
  • Disable Email Button - Removes the ability of users to e-mail the file directly from within SmartSimple.
  • No Deletion – suppress the user’s ability to delete any files stored in the field, and manager permission is required by the user to delete an Allow Delete Multiple Files Fields.
  • File Type Restriction - Use this option to specify the only file types that may be uploaded, in a comma-separated list. Please note that file extensions (e.g., txt, jpg) must be in lower case.
  • Workflow on Upload - Allows you to define a Workflow that will be triggered whenever a file is uploaded to this field.

Special Field Options

Indexing Multiple and Single File Fields

The Link Multiple File Field and the Link Single File Field both support a file index feature. Using this feature provides the ability to search documents attached to the field (subject to the user having permission to access the field).

File Types Supported

  • When you add a document to this file you must make sure that the document can be indexed for searching. The following types of documents are supported: Microsoft Word and Excel, Adobe PDF, HTML and RTF files.

Ensuring that PDF Files are searchable

  • If using PDF you must ensure that the files are text-searchable. You can test for this functionality by opening the file with Adobe Acrobat Reader and ensuring that the Select Text tool can be used to select text from the file.

Indexing after uploading

  • The indexing function takes place when the file is first uploaded so if you decide to index a file file after the file is uploaded you must re-index the field. Use the following steps to index the field:
  1. Locate and edit the Custom Field.
  2. Click the File Index check box.
  3. Click the Save button.
  4. Click the File Index tab.
  5. Click the option button Re-index all files in this field now!
  6. Click the Save button.

Disabling a File Index

  • If you wish to disable the File Index function and no longer make attached files searchable use the following steps:
  1. Locate and edit the Custom Field.
  2. De-select the File Index check box.
  3. Click the Save button.
  4. Click the File Index tab.
  5. Click the option button Remove index from all files in this field now!
  6. Click the Save button.


Display Additional File Attributes for PDF Documents

  • If the Single File field is going to store a PDF file, you can also create a Read Only - System Variables field to display additional attributes about the file (called Meta Data).
  • The additional attributes that can be extracted and displayed are: author, creator, producer, keywords, subject, title, number of pages, creation date and modified date.
  • See Display Additional File Attributes for PDF Documents for details on how this is accomplished.


Online Editing

  • When enabled an edit button will appear next to the document stored in this field that will allow users to edit the document online. When the changes are saved the updated document will automatically be saved back into this field. (Note: documents with special characters such as apostrophes in the file name may not be editable)
  • If a file is being edited by one user it will be shown as checked out to prevent other users from trying to edit it at the same time.
  • With online editing enabled:
SFFEdit.png
  • File checked out by another user:
SFFOut.png
  • Global Administrators also have the ability to force a document to be checked back in, in case a user does not check it back in.
SFFUndo.png

See also: Online File Editing.

Emailing Document

  • The document stored within this file can be E-mailed from within SmartSimple by clicking the Lookup... button (which may have been re-labelled with the Button Label option described above) and then clicking Email.


Variables

The following extensions can be used with Single File fields:

  • .value: the path (URL) of the file
  • .filename: lists the name of the file (including extension such as .pdf, .doc etc)
  • .numOfpages: if a PDF file is stored in the field the number of pages in the PDF document will be displayed.
  • .uploadlink: the URL that can be used to upload a file to the field.

Examples:

@Contract Document.numOfpages@
<a href="@Certificate.uploadlink@" target="_blank">Click Here to upload</a>

See Also