🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Citrix ShareFile Integration Add-on

Updated 8 min read Gravity Forms Files, Storage & Databases
On this page
  1. Step 1: Activate Your GravityExtra License
  2. Step 2: Create Your ShareFile API Key
  3. Step 3: Connect ShareFile in WordPress
  4. Step 4: Create a ShareFile Feed
  5. ShareFile Feed Settings Reference
  6. How Uploads Reach ShareFile
  7. Advanced Conditional Logic Scenarios
  8. Enterprise Compliance Vault Architecture: FINRA WORM Retention & Legal Holds
  9. Sub-folders per Entry: Client Folders & File Organization
  10. Developer PHP Filter Hooks
  11. Entry Notes & Troubleshooting Guide
  12. Frequently Asked Questions
  13. Stream Form Attachments into Citrix ShareFile

Comprehensive technical implementation and secure file routing guide for the Gravity Forms Citrix ShareFile Integration Add-on. Securely offload large form file attachments directly to your enterprise Citrix ShareFile vaults, eliminate web server storage bottlenecks, organize client folders dynamically, and maintain strict corporate data governance.

✓

System Requirements & Enterprise Vault Standards

Requires WordPress 5.8+, Gravity Forms v2.5+, PHP 7.4 through 8.3, and a valid Citrix ShareFile corporate account with API access enabled. Compliant with HIPAA, FINRA, and SOC 2 Type II data residency requirements.

Step 1: Activate Your GravityExtra License

  1. Install and activate the add-on, then go to Forms → Settings → Citrix ShareFile.
  2. Paste the license key from My Account → License keys on gravityextra.com and click Activate License.
  3. The ShareFile Connection panel appears once the license is active. The license also brings automatic updates in Dashboard → Updates.

Step 2: Create Your ShareFile API Key

The add-on connects through your own ShareFile API key (OAuth 2.0), so files are uploaded with the access of the ShareFile user who connects.

  1. In WordPress, copy the Callback URL shown in the ShareFile Connection panel. It looks like https://your-site.com/wp-admin/admin-post.php?action=gfcitrixsharefileaddon_oauth_callback and must start with https.
  2. Sign in at api.sharefile.com with your ShareFile account and click Get an API Key.
  3. Enter an application name and paste the Callback URL as the Redirect URI, exactly as shown.
  4. Copy the Client ID and Client Secret ShareFile gives you.

Step 3: Connect ShareFile in WordPress

  1. Paste the Client ID and Client Secret into the ShareFile Connection panel and click Save App Settings.
  2. Click Connect to ShareFile, sign in to ShareFile and allow access.
  3. Back in WordPress, the panel shows Connected to ShareFile with your account (for example yourcompany.sharefile.com). The add-on renews the connection by itself; the Client Secret and the access tokens are stored encrypted and are never shown again.
  4. To switch to another ShareFile account, click Disconnect and connect again.

Step 4: Create a ShareFile Feed

  1. Open your form and go to Settings → Citrix ShareFile, then click Add New.
  2. Enter a Name for the feed.
  3. Under ShareFile Folder, click Browse folders and pick the folder (My Files & Folders or Shared Folders), or paste the folder ID (it starts with fo) or a ShareFile folder link. Leave it empty or enter home for My Files & Folders.
  4. Optionally enter a Sub-folder per entry, for example Applications/{Name (Last):1.6} - {entry_id}. Missing folders are created in ShareFile.
  5. Under Files, tick the File Upload fields to send. Every file of a multi-file field is uploaded.
  6. Optionally tick Delete Local File After Offload. A file is removed from your server only after ShareFile has confirmed it.
  7. Optionally add Conditional Logic, then click Save Settings.

ShareFile Feed Settings Reference

Feed Setting Internal Attribute Description
Folder ID region ShareFile folder ID (fo…), ShareFile folder link, or home. Chosen with Browse folders.
Sub-folder per entry subfolder Optional path below the folder, with merge tags; separate folders with /.
File Upload fields file_field_{id} One or more File Upload fields, single or multi-file. Feeds made with version 1.0 keep their field (file_upload_field).
Delete Local File After Offload delete_local Removes the file from your server once ShareFile has confirmed it (and every other ShareFile feed of the form that sends the same file has it too).

How Uploads Reach ShareFile

Firms in legal, accounting, healthcare and engineering often collect confidential, large attachments. The add-on moves them into ShareFile right after the form is submitted:

  • Two-step ShareFile upload (API v3): the add-on asks ShareFile for an upload address (GET /sf/v3/Items({folder_id})/Upload) and sends the file there.
  • Confirmed in the folder: after sending, the add-on reads the ShareFile folder again. Only when the file is there does the entry get a note such as ShareFile: uploaded “contract.pdf” to /Client Uploads/contract.pdf (item fi…).
  • Automatic retries: if ShareFile is busy or the connection is interrupted, the add-on tries again after 5 minutes, 30 minutes and 2 hours (Action Scheduler when available, otherwise WP-Cron). You can turn retries off in Forms → Settings → Citrix ShareFile.
  • Safe local clean-up: with Delete Local File After Offload, a file is removed from wp-content/uploads/gravity_forms/ only after ShareFile has confirmed it. Files that could not be uploaded always stay on your server.
  • Folder permissions: uploaded files follow the permissions of the ShareFile folder, so your team opens them in ShareFile without public download links.

Advanced Conditional Logic Scenarios

Direct uploaded documents into specialized ShareFile client folders conditionally:

  • Departmental Document Routing: If a user selects “Tax Compliance” on your financial intake form, route documents to the Tax Audit Folder ID, while routing “M&A Advisory” files to the Corporate Advisory Vault.
  • High-Capacity File Thresholds: For submissions exceeding 50 MB, invoke ShareFile offload feeds while retaining simple PDF text agreements locally.

Enterprise Compliance Vault Architecture: FINRA WORM Retention & Legal Holds

Legal partnerships, accounting practices, healthcare networks, and financial advisory firms operate under stringent document preservation regulations. The Gravity Forms Citrix ShareFile Integration Add-on satisfies strict compliance frameworks:

  • FINRA Rule 4511 & WORM Storage Alignment: Files transferred into Citrix ShareFile can be designated for Write-Once-Read-Many (WORM) retention policies, ensuring customer financial disclosures, loan documents, and audit trails cannot be altered or overwritten prematurely.
  • Legal Hold & Litigation Readiness: In the event of legal discovery or regulatory inquiries, documents offloaded through form submissions remain indexed inside ShareFile’s e-discovery tools, preserving tamper-evident audit trails with verified creation timestamps.
  • HIPAA Business Associate Agreement (BAA) Compatibility: For healthcare providers capturing patient intake medical files, Citrix ShareFile offers full HIPAA BAA compliance, protecting Protected Health Information (PHI) with 256-bit AES encryption at rest and TLS 1.3 in transit.
  • Comprehensive Activity Logging: Track which staff members view, download, or share customer intake files with ShareFile’s granular activity audit logs, satisfying SOC 2 Type II governance criteria.

Sub-folders per Entry: Client Folders & File Organization

Keep the destination folder tidy with the Sub-folder per entry setting:

  • Client folders: use merge tags to give every submission its own folder, for example Clients/{Company:3}/{entry_id}. Missing folders are created in ShareFile; existing folders with the same name are reused.
  • Year and department structure: build paths such as Tax Intake/{date_mdy}/{Company:3} so your team finds each client’s files without sorting them by hand.
  • Several files per submission: when applicants upload several documents (for example ID, proof of income and bank statements), each file is uploaded, checked and noted in the entry with its ShareFile path.
  • Safe names: characters ShareFile does not accept in folder names are replaced with a dash, and empty parts of the path are skipped.

Developer PHP Filter Hooks

Developers can change the target folder per entry or react to finished uploads:




functions.php

PHP Filter

<?php
/**
 * Send VIP clients to another ShareFile folder (folder ID, ShareFile folder link or "home").
 */
add_filter( 'gform_sharefile_folder_id', function( $folder_id, $feed, $entry, $form ) {
    if ( rgar( $entry, '5' ) === 'VIP' ) {
        return 'fo123456-789a-bcde-f012-3456789abcde';
    }
    return $folder_id;
}, 10, 4 );

/**
 * Runs after each file is confirmed in ShareFile.
 */
add_action( 'gform_sharefile_post_upload', function( $file_url, $item_id, $entry_id ) {
    // e.g. save $item_id in your own system.
}, 10, 3 );

/**
 * Retry delays in seconds (default 5 minutes, 30 minutes, 2 hours).
 */
add_filter( 'gform_citrix_sharefile_retry_delays', function( $delays ) {
    return array( 600, 3600 );
} );

Also available: gform_citrix_sharefile_file_uploaded (action: item ID, ShareFile path, file, entry, feed, form), gform_citrix_sharefile_max_file_size (largest file sent in one request, default 100 MB within your PHP memory limit) and gform_citrix_sharefile_upload_timeout (seconds).

Entry Notes & Troubleshooting Guide

Every file gets a note on the entry. If a file was not uploaded, the note gives ShareFile’s reason and says when the add-on tries again:

Entry note says What to do
ShareFile is not connected Open Forms → Settings → Citrix ShareFile and click Connect to ShareFile. Waiting files are sent on the next retry.
ShareFile did not accept the authorization … Connect again The ShareFile access was removed or the API key changed. Click Reconnect.
HTTP 403 … check that the connected ShareFile user can write to this folder Give the connected ShareFile user upload rights on the folder, or pick a folder that user can write to.
HTTP 404 … folder not found The folder was moved or deleted. Edit the feed and choose the folder again with Browse folders.
The file was sent, but it is not in the ShareFile folder (yet) Nothing to do: ShareFile is still processing the file. The add-on checks the folder again on the next retry and keeps the local copy until then.
The file is larger than this server can send in one request Raise the PHP memory_limit on your hosting, or use the gform_citrix_sharefile_max_file_size filter. The file stays on your server.

Frequently Asked Questions

Are files kept on my WordPress server when using this add-on?
Yes, unless you tick “Delete Local File After Offload”. With that setting, a file is removed from your server only after ShareFile has confirmed it is in the folder. Files that could not be uploaded are always kept.

Can I send multiple file attachments in a single submission?
Yes. Tick one or more File Upload fields in the feed; single-file and multi-file fields are both supported, and every file gets its own entry note.

Can each submission go into its own ShareFile sub-folder?
Yes. Use the Sub-folder per entry setting with merge tags; missing folders are created automatically. Developers can also change the folder with the gform_sharefile_folder_id filter.

Where do I find the ShareFile folder ID?
You do not need it: click Browse folders in the feed and pick the folder. You can also paste the folder link from your browser while the folder is open in ShareFile.

Stream Form Attachments into Citrix ShareFile

Eliminate hosting storage limits, protect client confidentiality with HIPAA-compliant storage, and streamline corporate document workflows.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr