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

Gravity Forms Equipment Loans & Returns Setup Guide

Updated 10 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. What you need
  3. Install and activate
  4. Build your item catalogue
  5. Import items from a CSV
  6. Set up a loan request form
  7. Availability by date
  8. Reservations and what the server checks
  9. Check out, check in and cancel
  10. Reminders and notifications
  11. Merge tags
  12. History, entries and exports
  13. Frequently asked questions
  14. Can one request include several items?
  15. What happens when the license is not active?
  16. Can borrowers extend a loan?
  17. Is borrower data sent anywhere?

Video walkthrough

Gravity Forms Equipment Loans & Returns Setup Guide: Stock, Dates, Check-Out, Check-In
Video setup guide: Gravity Forms Equipment Loans & Returns Watch on YouTube

The Gravity Forms Equipment Loans & Returns add-on turns a Gravity Forms form into a loan request form and gives your staff a small lending desk inside WordPress. You keep a catalogue of the things you lend — projectors, laptops, cameras, tripods, books, tools, sports kit — with a stock count or one serial number per unit. Borrowers choose an item and the dates on your form and see straight away how many units are free. When they submit, the server checks the stock again and reserves the units, so two people can never book the last one. Staff check items out and back in, note the condition and add a photo, and the add-on reminds borrowers before the due date and when an item is late, using ordinary Gravity Forms notifications. This guide covers installation, the item catalogue, setting up a loan form, availability and reservations, checking out and in, reminders, history, merge tags and exports.

A loan request form at a community library: Portable projector with 2 free units chosen, 2 units, Camera tripod as a second item, collect on a date and the due date filled in seven days later, with a note saying how many units are free for those dates
The loan request form: free units for the chosen dates under the item, and the due date set by the add-on.

What you need

  • WordPress 6.5 or newer and PHP 7.4 or newer.
  • Gravity Forms 2.9 or newer (tested with 2.9 and 3.1).
  • A GravityExtra license key for this add-on.
  • A form with an item field (Drop Down or Radio Buttons), a Date field for the start date and, if you want reminders by e-mail, a Name and an Email field.

Nothing else is needed: no outside service and no extra library. Loans are stored in two tables in your own WordPress database, and the reminders are sent by WordPress through your normal mail setup.

Install and activate

  1. In WordPress go to Plugins → Add New → Upload Plugin and upload the add-on zip, then click Activate.
  2. Go to Forms → Settings → Equipment Loans, paste your license key and click Activate License.
  3. A new page appears under Forms → Equipment Loans and each form gets a Settings → Equipment Loans tab.

The add-on creates its tables when it is activated. A daily job is scheduled at 08:00 site time for the reminders; it is removed when you deactivate the add-on.

Build your item catalogue

Open Forms → Equipment Loans → Items. Each item has:

  • Name — what borrowers see on the form, for example Portable projector.
  • Code or asset tag — your own reference. Codes are also used to match rows when you import a CSV again.
  • Category — for your own lists and exports.
  • Units in stock — how many identical units you lend.
  • Serial numbers — one per line. When an item has serial numbers, each serial is one unit and the stock count follows the list. Staff pick the serials when they check the item out.
  • Longest loan for this item — for example 3 days for microphone kits even if the form allows a week. 0 uses the form’s rule.
  • Notes and Offer this item on loan forms — switch an item off when it is away for repair; it stays in the history but is no longer offered.

The list shows for every item the units it has, how many are on loan, how many are reserved and how many are free today.

The Items tab: each item with its code, category, units, units on loan, reserved, free today and longest loan, then the add item form and the CSV import box
The item catalogue with stock in use and free today.

Import items from a CSV

Paste a CSV into Import items from CSV. The first line can name the columns in any order: name, code, stock, serials, category, max days and notes. Only the name is required. Several serial numbers in one cell are separated with a vertical bar, for example LT-01|LT-02|LT-03. Commas, semicolons and tabs all work as separators, and quoted cells may contain commas. A row whose code already exists updates that item instead of adding a copy, so you can keep your list in a spreadsheet and import it again after changes.

Set up a loan request form

Create a form with the fields you need, for example: Your name, Email, Item (Drop Down), Units (Number), Collect on (Date), Due back (Date) and What is it for? (Paragraph). You do not need to type the items as choices: the add-on fills the item field from your catalogue. Then open the form’s Settings → Equipment Loans tab:

  • Use this form to request equipment loans — switches the form on.
  • Item field 1 to 3 — up to three item fields per request, each with an optional Units field. Without a units field one unit is booked.
  • Start date field — the day the borrower collects the item. Without it, loans start today.
  • Due date — either a fixed loan length (for example 7 days; the add-on sets the due date) or the borrower chooses the return date in a second Date field.
  • Due date field — for a fixed loan, a Date, Hidden or Single Line Text field that receives the due date. It is read-only on the form and set again by the server.
  • Longest loan and Book at most this many days ahead — limits for the dates people may choose.
  • Borrower name field and Borrower e-mail field — shown on the loans page and used for the history and the limit per borrower.
  • Units one borrower may have reserved or on loan — for example 4. It is counted by e-mail address across all loan forms. 0 means no limit.

Save the settings and add the form to a page as usual. Multi-page forms and AJAX forms work; the loan is checked when the form is finally submitted.

Availability by date

As soon as the borrower picks the dates, the form asks your server how many units of each item are free for every day of that period and adds the number to each choice, for example Portable projector (2 free). Items with no free unit are greyed out. Under the chosen item a short note repeats the number for the exact dates, and for a fixed loan length a Due back line shows the date the item must be returned.

Availability counts the busiest day of the period. Two loans of one unit that do not overlap each other do not block a third request that spans both. An item that is still out after its due date stays unavailable until it is checked in, so a late return never causes a double booking.

The loan request form on a phone: a laptop chosen with 4 units free for the dates and the due back date shown under the date field
The same form on a phone.

Reservations and what the server checks

The numbers on the form help people choose, but they never book anything. When the form is submitted, the add-on checks everything again on your server before Gravity Forms saves the entry:

  • The start date is today or later and within the booking window; the return date is not before the start and the loan is not longer than the form or the item allows.
  • Each chosen item exists and is offered, and the units are a whole number.
  • The borrower stays within the limit per borrower.
  • Enough units are free for every day of the period.

The stock check and the reservation happen under a lock, one request at a time, so when two people submit at the same moment for the last unit, one gets it and the other sees a message asking for other dates or another item. For a fixed loan length the due date is always calculated by the server; a date changed in the browser is replaced. The entry stores the item, the dates and the loan status, and the units are reserved for the new entry.

If an entry is moved to the trash or marked as spam, its reservations are cancelled and the units are free again. Items that were already checked out stay on loan until they are checked in.

Check out, check in and cancel

Open Forms → Equipment Loans. The Loans tab has views for Active, Overdue, Reserved, On loan, Returned, Cancelled and All, each with a count, and a search box for borrower, item or serial number.

  • Check out — when the borrower collects the item. For items with serial numbers, the free serials are listed and the first ones are ticked; change them to the units you hand over. The loan becomes On loan.
  • Check in… — when the item comes back. Choose the condition, add a note and, if you like, a photo (JPEG, PNG or WebP). Tick Take these units out of stock when a unit is lost or broken: its serial number, or one unit from the stock count, leaves the catalogue.
  • Cancel reservation — when the borrower no longer needs it.

The return conditions are set under Forms → Settings → Equipment Loans; the default list is Good, Fair, Damaged, Needs repair and Missing parts. The Download CSV button exports the current view, for example all overdue loans, with the days overdue.

The Equipment Loans page: Active, Overdue, Reserved, On loan, Returned and Cancelled views with counts, and loan lines with item, serial numbers, borrower, dates, a status badge, an overdue line with days late and the check-in form with condition, note and photo
Forms → Equipment Loans: every loan line with its status, check-out and check-in.

Reminders and notifications

The add-on adds four events to the notification settings of every loan form: Equipment loan: checked out, Equipment loan: due soon, Equipment loan: overdue and Equipment loan: returned. Add a notification under the form’s Settings → Notifications, choose one of these events, send it to the Email field and write the message with the merge tags below. Because these are normal Gravity Forms notifications, routing, conditional logic and your mail setup all work as usual.

The daily job, under Forms → Settings → Equipment Loans, controls the timing:

  • Send “due soon” this many days before the due date — default 2; 0 turns it off.
  • Repeat “overdue” every this many days — default 3; 0 sends the overdue reminder once, the day after the due date.
  • Cancel a reservation that is not collected this many days after its start date — default 2; 0 never cancels automatically.

Each reminder is sent once per entry and day. A message about a check-out, a check-in or a reminder describes only the loan lines it is about, so a borrower who returned the projector but still has the tripod gets an overdue reminder for the tripod only.

Merge tags

  • {loan:items} — items, units and serial numbers, for example Portable projector × 2 (PJ-01, PJ-03).
  • {loan:start} and {loan:due} — dates in your site’s date format.
  • {loan:status} — Reserved, On loan, Overdue, Returned or Cancelled.
  • {loan:days_overdue} — days late, 0 when on time.
  • {loan:serials}, {loan:condition}, {loan:return_note} — from the check-out and check-in.
  • {loan:ref} — a loan reference based on the entry number, such as L-00042.

The tags work in notifications and confirmations and appear in the merge tag list of the form editor. They use words only after the colon, so they never clash with Gravity Forms’ own field tags such as {Email:2}, which keep working next to them.

History, entries and exports

  • History tab — choose an item to see every loan of it with the borrower, dates, condition, note and photo, or enter a borrower e-mail to see everything that person has borrowed.
  • Entry screen — an Equipment loan box lists the loan lines of the entry with their status and links to the loans page. The item field shows the item name.
  • Entries list and CSV export — Loan status, Loan due date and Loan items columns, and the item name in the item field column.

Frequently asked questions

Can one request include several items?

Yes. Map up to three item fields, each with its own units field. Every item becomes a separate loan line, so items can be checked out and returned on different days.

What happens when the license is not active?

The add-on switches its features off: the form behaves like a plain form with the choices saved in the editor, no units are reserved, the loans page and the settings tab are hidden, merge tags are empty and no reminders are sent. Your items and loan history are kept and come back when the license is active again.

Can borrowers extend a loan?

Not in this version. Staff can check the item in and the borrower can submit a new request for the new dates, which checks availability as usual.

Is borrower data sent anywhere?

No. Everything is stored in your WordPress database and processed on your server. The add-on makes no outside HTTP request apart from the license and update checks. Uninstalling removes the settings; tick Delete the items and the loan history when the add-on is uninstalled if you also want the tables removed.

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