Show/Hide Toolbars

PerfectApps™ Help Guide

Navigation: Designing an App

Attached Files, Field States

Scroll Prev Top Next More

The Field State assigned to a File Attachment object will determine what a user may do with that object.

 

For more information on Field States please check Limiting User Access to App Fields

 

When a File Attachment object is ready for a file to be attached it would normally be in the 'Normal' state. The button would be enabled and the default text on the button would be 'Attach', although this can be modified in the object properties.

 

File Attachment - Normal - Empty

State is Normal, no object is attached.

 

Once a file has been attached and whilst still in the 'Normal' state the button would still be enabled and the default text on the button will be 'Detach', although this can be modified in the object properties. The name of the attached file is displayed adjacent to the button. The default position is to the right of the button but this can also be modified in the object properties.

Clicking on the Detach button will allow the file to be removed from the app instance.

Clicking on the file name will allow a copy of the file to be downloaded by the user.

 

File Attachment - Normal - Full

State is Normal, an object is attached.

 

To prevent the file from being detached (removed from the app) but still allowing for a copy to be downloaded the File Attachment object should be placed in the 'Read-Only' state. The Detach button will be disabled but the file name remains enabled.

 

File Attachment - Read-Only - Full

State is Read-Only, an object is attached

 

To prevent the file from being detached and to prevent a copy from being download, the File Attachment object should be placed in 'Disabled' state. The Detach button and the file name are both disabled. Another option would be to place the object in the 'Hidden' state.

 

File Attachment - Disabled - Full

State is Disabled, an object is attached.

 

Working with Attached Files

Working with Attached Files

(3 min)

Learn about the different parameters of a File Attachment object and how to use them with PerfectApps behaviors.

Working with Pictures

Working with Pictures

(2 min)

If an image file is attached to an app it's possible to display that image in the app. Watch this tutorial to find out how it's done.