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

Gravity Forms FooGallery 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 paid version of FooGallery?
  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 FooGallery: Visitor Photo Uploads with Approval, Titles and Alt Text (Free Plugin)
Video tutorial: Gravity Forms FooGallery Integration Watch on YouTube

The Gravity Forms FooGallery Integration Premium Add-on sends the pictures your visitors upload through a Gravity Forms File Upload field into a FooGallery 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 gallery the way the FooGallery editor does, so the gallery shows it at once with your layout and settings.

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 FooGallery plugin from WordPress.org, version 3.0 or newer. The add-on is tested with FooGallery 3.0.16.
  • An active license key for this add-on.

If FooGallery is missing or too old, the add-on tells you with a notice in the WordPress admin and on the feed list, and a feed does nothing until FooGallery is active.

Install and activate

  1. Install and activate the add-on like any plugin, after Gravity Forms and FooGallery.
  2. Open Forms → Settings → FooGallery 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 → FooGallery 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 in FooGallery: the picture is the last one in the list.

The FooGallery Gallery 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 FooGallery gallery is a plain list of Media Library picture numbers, in display order, plus a template and its 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. The pictures that are already in the gallery are not touched: your own order and settings stay as they are.

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 FooGallery gallery by title and number. Galleries that FooGallery fills from a source of its own are left out, because their pictures come from a source such as folders or tags and not from a stored 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 FooGallery galleries), Caption and Describe the photo
The visitor picks the gallery from a drop-down that lists your FooGallery 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 template (Responsive, Masonry, Justified, Image Viewer, Carousel or Portfolio, the templates of the free FooGallery plugin) and the status of the new gallery: published, or draft until you approve the pictures. The new gallery gets the default FooGallery settings of that template (or a copy of the default gallery you chose in the FooGallery settings, when the template is the default one), so you can restyle it in FooGallery 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.

A FooGallery gallery has no address of its own, so the add-on can make a WordPress page that holds the FooGallery shortcode for it, published or as a draft. The link of that page is the merge tag {foogallery_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. FooGallery shows the caption of an image under the picture when your template shows captions.

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 the picture is not added to the gallery until an admin approves them. Until then they are not shown in any FooGallery gallery. 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 FooGallery 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 FooGallery: images approved. Reject images deletes the pictures from the Media Library for good and sends FooGallery: 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 FooGallery 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

  • {foogallery_gallery_id}: the number of the gallery.
  • {foogallery_gallery_url}: the address of the gallery page, empty when no page was made.
  • {foogallery_gallery_name}: the title of the gallery.
  • {foogallery_image_count}: how many images this feed handled for the entry.
  • {foogallery_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 anything in the paid FooGallery features: albums, filters, galleries bound to a source and the gallery types of the paid edition are not touched. A new gallery uses one of the six templates of the free plugin.
  • It does not edit or reorder the pictures that are already in a gallery, and it does not set a gallery description (a FooGallery gallery has none).
  • 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, FooGallery, and that FooGallery is active and version 3.0 or newer.
  • 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 picture is not in the list of a drop-down: the gallery may be on your exclude list, may belong to another user when the owner option is on, or may be a bound gallery.
  • 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 paid version of FooGallery?

The add-on uses the data format of the free FooGallery plugin, which the paid edition builds on, and it only adds pictures to galleries that store their own list. Galleries that the paid edition fills from a source (for example folders or tags) are left out. 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