The file attachment control allows users to upload and download different types of files, providing a convenient way to share information.

When a file attachment control is selected in the design environment, its associated properties are displayed in the Control Properties panel.

  1. Binding: In this category, users can link a control to its corresponding attribute and define its binding properties.
    • For more information on the fields in this category, click here.
  1. Name: In this category, users can access basic properties required for the control’s identification and proper referencing in the code.
    • For more information on these properties and how to configure them, click here.
  2. Control Behavior: In this category, users can configure the behavior of the control and define how it interacts with the form or application.
    • Form Behavior: This is a single-select dropdown field that retrieves the list of form behaviors (from the Form Behavior section of the Forms module). It allows users to select the form behavior associated to the control.
      • Any state properties set for the control will apply only to the selected form behavior.
    • Control State: This field displays the current state of the control.
      • Control States
        1. Enabled: This option allows for the control to be visible and editable in the web application.
        2. Disabled: This option allows for the control to be visible but not editable in the web application.
        3. Invisible: This option allows for the control to be hidden in the web application.
    • Control Governance: This field allows users to configure various properties that govern the functionality of controls.
      • To access the control governance properties, click on the ellipses () inside the field. It will display the Form / Behavior / Control window.
        • This window consists of two tabs:
          1. File Attachment
          2. Validation
    • State Matrix: This field allows users to configure the control state properties.
      • To access the control state properties, click on the ellipses () inside the field.
        • Form Behavior: This field displays the form behavior.
          • All form behaviors linked to associated form will be listed in this window.
        • Control State: This is a single-select dropdown field that displays the list of control states. It allows users to modify the current control state of the form behavior.
        • Init Value: This is a text field that allows users to input the initial value for the control.
        • Control Governance: This field allows users to configure the control governance properties.
          • If selected, it will display the Form / Behavior / Control window (described here).
        • Apply: This button allows users to save their changes.
        • OK: This button allows users to save their changes and close the window.
        • Cancel: This button allows users to cancel their changes and close the window.
  3. Appearance: In this category, users can customize the visual appearance of the control.
    • Edit Mode File Extensions: This field allows users to specify the types of files that can be edited in the control.
      • Users can input specific file extensions in this field to restrict editing access to only those file types.
    • File Extensions: This field allows users to specify the types of files that can be uploaded to the control.
      • Users can input specific file extensions in this field to restrict uploading access to only those files types.
        • To include multiple file types, users need to separate each file type with a comma.
    • Max File Count: This is a numeric updown field that allows users to set the maximum number of files that can be attached to the control.
      • By default, the maximum file count is set to 1. To adjust this value, users can enter numbers into the field either manually or by clicking the increment/decrement arrows.
    • Max File Size: This is a numeric updown field that allows users to set the maximum combined size limit, in megabytes, per file attached to the control.
      • By default, the maximum file size is set to 2 MB. To adjust this value, users can enter numbers into the field either manually or by clicking the increment/decrement arrows.
    • Tooltip: This field allows users to input a tooltip for the control.
      • In the web application, the tooltip is represented by the tooltip icon ( ) next to the control.
      • File Attachment Tooltip Preview: Web View
  4. Caption Appearance: In this category, users can customize the visual appearance of the control’s caption.
    • For more information on the fields in this category, click here.

File Attachment Control Preview: Web View
  • If the max file count is set to 1, the file attachment field will take on the following appearance in the web application:

    • : This button allows users to upload a single file.
      • If selected, a file dialog will appear, enabling users to browse and choose a file from their local system.

  • If the max file count is greater than 1, the file attachment field will take on the following appearance in the web application:

Quick Forms Application
To apply the Quick Forms feature to file attachment controls, take the following steps:
  • Drag a file attachment control from the toolbox and drop it onto the design environment.
  • Provide a caption for the control.
  • Save the form and select Yes in response to the following prompt: