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

Gravity Forms Responsive Lightbox Gallery Integration Premium Add-on Setup Guide

Updated 9 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. What you need
  3. Install and activate
  4. Your first feed
  5. How the images get into the gallery
  6. Which images are used
  7. Choosing the gallery
  8. One gallery chosen here
  9. The gallery the visitor picks
  10. A new gallery
  11. A page for the gallery
  12. Choices: galleries in a form field
  13. Title, alt text and caption
  14. Approval
  15. Merge tags
  16. Conditional logic, payments and notes
  17. Files and privacy
  18. What it does not do
  19. Troubleshooting
  20. Questions
  21. Does it work with the premium extensions of the plugin?
  22. Can visitors upload without an account?
  23. Is the original photo changed?
  24. Can I add images to a gallery later, from another entry?

Video walkthrough

Gravity Forms Responsive Lightbox & Gallery: Visitor Photo Uploads with Approval (Free Plugin)
Video tutorial: Gravity Forms Responsive Lightbox & Gallery Integration Watch on YouTube

The Gravity Forms Responsive Lightbox Gallery Integration Premium Add-on sends the pictures your visitors upload through a Gravity Forms File Upload field into a Responsive Lightbox and Gallery gallery. The add-on copies each picture into the WordPress Media Library with the title, the alt text and the caption you build from the form, and then adds it to the media list of the gallery the way the gallery editor does, so the gallery shows it at once in the layout you chose and opens it in the lightbox.

You decide which gallery receives the images: one gallery you choose, a gallery the visitor picks from a list, or a new gallery made for each entry, each name or each logged-in user. You can hold the images back until you approve them on the entry screen. Nothing leaves your server and no outside service is contacted.

What you need

  • WordPress 6.5 or newer and PHP 7.4 or newer.
  • Gravity Forms 2.9 or newer. The add-on is tested with Gravity Forms 3.1.2 on PHP 8.3 and Gravity Forms 2.9.8 on PHP 7.4.
  • The free Responsive Lightbox and Gallery plugin from WordPress.org, version 2.7 or newer, with its gallery builder switched on (it is on by default). The add-on is tested with version 2.7.11.1.
  • An active license key for this add-on.

If the plugin is missing, too old or has its gallery builder switched off, the add-on tells you with a notice in the WordPress admin and on the feed list, and a feed does nothing until the plugin is ready.

Install and activate

  1. Install and activate the add-on like any plugin, after Gravity Forms and Responsive Lightbox.
  2. Open Forms → Settings → Responsive Lightbox and enter your license key. Without an active license no feed can be created and no image is added.
  3. Open the form that has a File Upload field, go to Settings → Responsive Lightbox and add a feed.

Your first feed

A feed is one rule: when this form is sent, take the images and put them in this gallery. Give the feed a name, leave the File Upload field ticked, keep One gallery chosen here and choose a gallery from the list. Save the feed, send the form once with a picture and open the gallery: the picture is the last one in the list.

The Responsive Lightbox feed settings: the File Upload field, the gallery choice, the choices boxes, the image details with merge tag buttons, the approval and the condition
The feed settings: which gallery, the image details and the approval step.

A gallery of the plugin is a post with a list of Media Library image numbers and some settings. For every uploaded file the add-on checks that it is a real picture inside the Gravity Forms upload folder, copies it into the Media Library with the normal WordPress routine (so WordPress makes its thumbnails and the file lands in the usual uploads folder) and then adds its number at the end of the gallery list. It also refreshes the image count that the gallery list screen shows. The images that are already in the gallery are not touched: your own order stays, and an image you switched off in the editor stays switched off.

Which images are used

Every File Upload field of the form is ticked by default; untick a field to leave it out. Both the single file field and the multiple file uploader work. Files that are not pictures (jpg, png, gif or webp) are skipped and the entry note says which. Most images per entry sets a limit from 1 to 50; extra pictures are skipped with a note.

The simplest rule. The list shows every gallery of the plugin by title and number. A gallery whose images come from somewhere else (Featured Content, Folders or the Remote Library of the plugin) is left out, because its pictures are found by a query and are not stored in a list that anyone can add to.

Add a drop-down or a set of radio buttons to the form, choose it in Gallery field, and list your galleries in it with the Choices box described below. The visitor chooses a gallery by name; the value that is sent is the gallery number. A tampered value is refused, because the add-on checks the answer against the same list it showed. If the field is left empty you can set a Gallery when the field is empty, or the pictures are skipped and the entry gets an error note.

A Gravity Forms photo contest form with the fields Your name, Your photo, Gallery (a drop-down filled with the Responsive Lightbox galleries), Caption and Describe the photo
The visitor picks the gallery from a drop-down that lists your Responsive Lightbox galleries.

Type a name with merge tags, for example Open day – {Your name:1}. Also available are {entry_id}, {form_title}, {user_login} and {date}. Choose the gallery type (the type chosen in the plugin settings, Basic Grid, Basic Slider or Basic Masonry) and the status of the new gallery: published, or draft until you approve the pictures. Every other gallery setting is left at the defaults of the plugin, so you can restyle the gallery in its editor afterwards.

New or existing controls re-use. A new gallery for every entry is the default. With the name option the add-on uses the gallery that already has the same name and makes it only when it is missing, which gives you one gallery per event or per customer when the name is made of merge tags. With the user option a logged-in visitor always gets the same gallery, while visitors who are not logged in get a new one each time.

Many sites want a gallery inside a normal page, with their own heading and text around it. The add-on can make a WordPress page that holds the gallery shortcode for the new gallery, published or as a draft. The link of that page is the merge tag {rlg_gallery_url}. With approval the page is made when the pictures are approved, and a gallery that already has a page made by the add-on keeps it.

Choices: galleries in a form field

Under Choices pick the form field that should list the galleries. The choices of a drop-down, radio buttons, checkboxes or a multi select are replaced by the allowed galleries (up to 500), with the gallery number as value. You can leave galleries out with Never these galleries (numbers separated by commas) and you can show a logged-in visitor only the galleries that user made. Visitors who are not logged in then see an empty list. The same rule fills the list in the form and checks the answer when the form is sent.

Title, alt text and caption

The boxes Title, Alt text and Caption take merge tags, so you can use any field of the form. Extra tokens work in these boxes: {filename} (the file name without its extension), {index} (1, 2, 3 and so on for several files) and {entry_id}. An example title is {Your name:1} – {filename}. An empty title uses the file name and an empty alt text uses the title. The caption is plain text; HTML is removed. The plugin can show the title and the caption of an image under each tile and in the lightbox, according to the design settings of the gallery.

Approval

With Approval you choose what happens before the images are in the gallery.

  • No approval: the images are added to the gallery as soon as the form is sent.
  • Hold the images: the pictures are copied into the Media Library, but nothing is added to the gallery until an admin approves them. Until then they are not shown in any gallery of the plugin. Keep in mind that a file in the Media Library has an address that works for anyone who knows it.

The entry screen shows a Responsive Lightbox box with the status, a link to the gallery and every image as a thumbnail. Approve images adds them to the gallery, publishes a gallery that was made as a draft, makes the page if you asked for one and sends the notification event Responsive Lightbox: images approved. Reject images deletes the pictures from the Media Library for good and sends Responsive Lightbox: images rejected. The copy that Gravity Forms keeps for the entry stays. Both buttons check a security token and the right to edit entries, and ask once before they delete.

The Responsive Lightbox box on a Gravity Forms entry screen: status Waiting for approval, a link to the gallery, two thumbnails and the buttons Approve images and Reject images
The entry screen shows the images that were added, the gallery link and the approval buttons.

Merge tags

  • {rlg_gallery_id}: the number of the gallery.
  • {rlg_gallery_url}: the address of the gallery page, empty when no page was made.
  • {rlg_gallery_name}: the title of the gallery.
  • {rlg_image_count}: how many images this feed handled for the entry.
  • {rlg_status}: pending, approved or rejected.

Use them in confirmations, notifications and other merge tag boxes. With two feeds on one form the tags describe the last one. The entry list gets two optional columns and filters: the gallery number and the image status.

Conditional logic, payments and notes

The feed has the usual condition box: add the images only if a field has a value. If the form takes a payment, the option Add the images to the gallery only when payment is completed waits for the payment. Every step writes a note to the entry: what was created, what was skipped and why, and any error.

Files and privacy

The add-on contacts no outside service. It copies files that Gravity Forms already stored on your server into the Media Library, so each picture exists twice: the copy of the entry and the copy of the gallery, plus the thumbnail sizes WordPress makes. Plan your disk space for that, and delete old entries and files in the usual Gravity Forms way when you no longer need them. Rejecting images deletes the Media Library copy only.

What it does not do

  • It does not change the settings of the plugin, its lightbox script or its design options. A new gallery uses the defaults of the plugin.
  • It does not fill galleries that take their images from Featured Content, Folders or the Remote Library, and it does not add video or embedded items.
  • It does not edit or reorder the pictures that are already in a gallery.
  • It does not move pictures from the Media Library that were there before the form was sent.

Troubleshooting

  • No feed can be added: check the license under Forms, Settings, Responsive Lightbox, that the plugin is active and version 2.7 or newer, and that its gallery builder is on.
  • Nothing happened after the form was sent: open the entry and read the notes. A skipped picture, a missing gallery or a feed condition that did not match is written there.
  • The gallery is empty: with approval set to hold, the pictures wait for the Approve images button on the entry screen.
  • The gallery is not in the list of a drop-down: it may be on your exclude list, may belong to another user when the owner option is on, or may take its images from another source.
  • The file was too large: the limit is the one of the File Upload field and of your server.

Questions

Does it work with the premium extensions of the plugin?

The add-on writes the same data the gallery editor of the free plugin writes and only adds pictures to galleries that keep a list of Media Library images. It was tested with the free plugin only.

Can visitors upload without an account?

Yes. That is the normal case. The gallery author is then user 0 unless the visitor is logged in.

Is the original photo changed?

No. WordPress imports a copy into the Media Library and makes its usual image sizes. Any image optimizer or watermark you run on new uploads works on that copy.

Can I add images to a gallery later, from another entry?

Yes. With a fixed gallery or with a named gallery that is reused, every entry adds to the same gallery. Pictures that are already in the list are never added twice.

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