Hide Photo Uploader Error Message on Mobile Using Component Visibility

Learn how to hide the PhotoUploader component on mobile devices if your license only supports desktop usage.

Version 1.0.0 | 04/03/2025

Lightning App Builder | Component Visibility Filter | Additional Resources

Hide Photo Uploader Error Message on Mobile Using Component Visibility

PhotoUploader supports Salesforce Mobile app in Fundamental and Performance Edition. When using the Free Edition of PhotoUploader, Users receive an error message when accessing Salesforce through a mobile device. While upgrading your license will unlock full mobile compatibility, our Free Edition Users can utilize the Salesforce Component Feature Component Visibility in the Lightning App Builder to hide the PhotoUploader component from mobile users.

Note: Want PhotoUploader available on mobile too? Contact us to upgrade your licenses and unlock mobile compatibility.

Instructions

Step 1: Open Lightning App Builder

  1. Navigate to the record (e.g., Contact) with PhotoUploader in Salesforce.
  2. Click the ⚙️ Gear Icon in the top-right.
  3. Select Edit Page.

Step 2: Locate the PhotoUploader Component

  1. In the center panel of Lightning App Builder, click the PhotoUploader component already placed on the page.
  2. The right-hand properties panel will display the component’s settings.

Step 3: Apply a Component Visibility Filter

  1. Scroll to the Component Visibility section in the right panel.
  2. Click + Add Filter.
  3. Select Device as the filter field.
  4. Set the logic:
    • Form Factor → Not Equal → Phone

Component Visibility Filter: Form Factor → Not Equal → Phone

Step 4: Save and Test

  1. Click Save.
  2. If prompted, click Activate to assign the page as Org Default.
  3. Return to the record page and refresh.
  4. Test from a mobile device — the component should now be hidden, and the error message will no longer appear.

Additional Resources

Share Your Experience With Us

Let PhotoUploader work for your team on both desktop and mobile.

Back to Top