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

Gravity Forms Room & Roommate Allocation Setup Guide

Updated 12 min read Gravity Forms Fields & Inputs
On this page
  1. Video walkthrough
  2. Who it is for
  3. What you need
  4. Install and activate
  5. How it differs from other tools
  6. Step 1: settings
  7. Step 2: buildings, rooms and beds
  8. Step 3: the application form
  9. Roommate requests and share codes
  10. Step 4: suggest a plan
  11. Reasons for every placement
  12. Step 5: adjust the plan
  13. Step 6: publish the offers
  14. One person per bed, always
  15. Declines, deadlines and the waiting list
  16. Roommate names and privacy
  17. Occupancy and exports
  18. Uninstall
  19. Questions

Video walkthrough

Gravity Forms Room Allocation: Housing Applications, Roommate Matching & Room Offers
Video setup guide: Gravity Forms Room & Roommate Allocation Watch on YouTube

The Gravity Forms Room & Roommate Allocation add-on turns housing applications into a room plan, offers and a room list on your own website. You set up your buildings, rooms and beds, students or guests apply through an ordinary Gravity Forms form, and the auto-allocator suggests a plan: mutual roommate requests first, accessible rooms for the people who need them, room rules, ranked room type choices and lifestyle matching for everybody else, with a reason for every placement. Your team adjusts the plan by drag and drop, publishes signed offers with a deadline, and declined or unanswered beds go to the waiting list. This guide covers installation, rooms, the form, the allocator, the plan board, offers, the waiting list, exports and privacy.

Who it is for

University and college halls of residence, boarding schools, summer camps and summer schools, language schools with host residences, staff and seasonal worker housing, retreat centres and any organisation that places a group of people into shared rooms for a term, a season or a year. It works the same with twenty beds or a few hundred.

What you need

Gravity Forms 2.9 or newer, WordPress 6.5 or newer and PHP 7.4 or newer. The add-on makes no outside connection beyond checking gravityextra.com for your licence and plugin updates. Offers and other e-mails go out through WordPress like any other site e-mail, and the PDF is drawn on your own server with a bundled PDF library.

Staff screens follow the Gravity Forms permissions: the plan, applicants, offers and exports need the view entries capability, changing the plan and publishing offers need edit entries, and buildings and rooms need edit forms. Lifestyle answers are shown to administrators only.

Install and activate

  • Upload the add-on zip in Plugins → Add New → Upload Plugin and activate it.
  • Go to Forms → Settings → Room Allocation, enter your GravityExtra licence key and press Activate License.
  • Forms → Room Allocation now opens the plan board, and every form gets a Room Allocation tab in its settings.

Without an active licence the admin page shows only a note with a link to the licence settings, new entries are not turned into applications and offer links are not answered. Your buildings, rooms, applications and offers stay in place and come back as soon as the licence is active again.

How it differs from other tools

A few GravityExtra add-ons and Gravity Forms itself touch on parts of this job. Here is which one does what:

  • Gravity Forms on its own saves every housing application as an entry, but it has no idea which beds you have, cannot tell whether two students really asked for each other, does not keep accessible rooms for the people who need them and has no way to send an offer that can be accepted once.
  • Our Meeting Rooms add-on books a room for a time slot: an hour in a meeting room, a morning in a studio. Room & Roommate Allocation is about who lives where for a whole term or year: beds, roommates, rules and offers, not slots in a calendar.
  • Our Seat Picker add-on lets each visitor pick their own seat at an event on a seating map, first come first served. Here nobody picks a bed: the allocator places everybody by mutual roommate requests, accessibility needs, room rules, ranked choices and lifestyle, and your team checks the plan before any offer goes out.
  • Our Mentor Matching add-on pairs people with people, such as mentors with mentees, by their answers. Room Allocation also matches people, but always inside real rooms with a number of beds, gender and age rules, prices and accessibility, and it adds what housing needs: offers with a deadline, a waiting list and one person per bed.

Step 1: settings

In Forms → Settings → Room Allocation you can change four things. The shipped values suit most halls:

  • Accommodation name: shown on the offer page, in the e-mails and on the room list PDF. Empty means your site name.
  • Days to answer an offer: 7 by default (1 to 60). When an offer is not answered in time, the bed goes to the next person on the waiting list.
  • Offers per freed bed: 1 by default. With a higher number, a bed that becomes free is offered to that many people on the waiting list at once; the first to accept gets it and the others keep their place. Useful close to the start of term, when every day an empty bed waits counts.
  • Price shown as: the words after each room price, per term by default, for example per week for a summer school. Prices are for display; the add-on does not take payments.

Step 2: buildings, rooms and beds

Open Forms → Room Allocation → Buildings & rooms. Add your buildings first, then a row for each room:

  • Building and room name or number, for example Elm House, E-103.
  • Type: single room, twin room (shared), en-suite room or accessible room. Applicants rank these types on the form.
  • Beds: how many people share the room (1 to 26). Beds are labelled A, B, C and so on. Lowering the number never removes a bed somebody has accepted or has an open offer for.
  • Floor (0 is the ground floor) and the price per term, shown to applicants on their offer and on the room list.
  • Gender rule: anyone, women only, men only, or same gender in the room (whoever moves in first decides).
  • Minimum and maximum age, for example 21 and over for a postgraduate corridor. Empty means no limit.

The rules are hard rules: the allocator never breaks them, and if staff move somebody into a room that breaks one, the plan shows a warning.

Step 3: the application form

Create a normal Gravity Forms form and add these fields (the labels are up to you):

  • Name and E-mail. One application per e-mail address; a second one is refused with a clear message.
  • Gender (radio buttons or a drop down) and age on moving-in day (a Number field). They are only used for rooms with a gender rule or an age limit.
  • Room type, 1st, 2nd and 3rd choice: three drop downs. The add-on fills in the choices for you.
  • Roommate request: an e-mail field for the other person’s e-mail address and a text field for their share code.
  • Lifestyle: four radio button fields for sleep time, tidiness, quiet or social, and smoking. The add-on fills in the answers.
  • Accessibility: a radio button field Do you need an accessible room? and an optional paragraph field for details. Only staff see the details.

Then open Form Settings → Room Allocation, tick Each entry of this form is a housing application and match each field. Put the form on a published page.

The Westbrook University Halls application form: name, e-mail, gender and age, ranked room type choices, accessibility need, a roommate request by e-mail or share code, and lifestyle questions about sleep time, tidiness, quiet or social and smoking
The application form. The add-on fills in the choices for the room types, lifestyle questions and accessibility.

Roommate requests and share codes

After sending the form, every applicant sees a personal share code such as KQ7M-3RTA under the thank-you message (use the {room_share_code} merge tag to put it in a Gravity Forms notification too). The friend they want to live with types that code, or simply the first person’s e-mail address, into their own form. A share code that does not exist, or your own code, is refused on the form.

Two people are only placed together when both asked for each other. If Ben asks for Daniel but Daniel does not ask for Ben, the request is one-way: it is shown as such on the Applicants tab, it is never treated as a pair, and Ben’s placement says so. This protects students from being placed with somebody who did not choose them.

Step 4: suggest a plan

On Forms → Room Allocation → Allocation plan, enter a seed (any word or number, for example the year) and press Suggest a plan. The allocator works on everybody who has no offer or bed yet, and on the beds that are free:

  1. Mutual roommate pairs first. Each pair gets a room with two free beds of a type at least one of them chose, preferring the types they ranked highest, and only if the room’s rules fit both.
  2. Accessibility needs next. Applicants who need an accessible room are placed in accessible rooms only, before anybody else, so those rooms are not used up by people who do not need them.
  3. Everybody else in the seeded order, by their 1st, 2nd and 3rd choice. Within a room type the allocator picks the room whose current occupant is the best lifestyle match; an empty room counts as a neutral 50%. A smoker is never put with a non-smoker while another room is free.
  4. If none of the chosen types has a bed that fits the rules, the next free standard room is used and the placement says it was not a listed choice. Accessible rooms are kept for the people who need them.

The seed sets the order in which applicants are considered, like a fair lottery draw that can be repeated: the same applicants, rooms and seed always give exactly the same plan, so you can explain and reproduce any result. Use a new seed for a new round if you want a fresh draw.

Reasons for every placement

The allocation plan board for Elm House and Harper Court: every room with its type, floor, price and rules, each bed with the person placed in it and the reasons, such as a mutual roommate request, an accessible room or a first choice with a lifestyle match, and a list of applicants not placed with the reason for each
Forms → Room Allocation: the suggested plan with a reason for every placement and for everybody not placed.

The board shows each building with its rooms, the rules and price of each room, and every bed. A placed person appears on their bed with the reasons, for example:

  • Mutual roommate request with Chloe Martin: both asked for each other. Twin room (shared) (1st choice). Lifestyle match 88%.
  • Needs an accessible room: placed in an accessible room before other applicants.
  • 1st choice: Twin room (shared). Shares with Ben Hughes: 60% lifestyle match (same tidiness, smoking).
  • Roommate request for Daniel Kim is one-way (Daniel did not ask back), so it was not treated as a pair.

Everybody the plan could not place is listed under Not placed, each with the reason: every bed is taken; beds are free but the room rules do not fit (gender rule or age limit); the only free beds are accessible rooms kept for applicants who need them; or an applicant needs an accessible room and none is free. They go on the waiting list in this order when you publish.

Step 5: adjust the plan

Drag a person onto another bed, or onto Not placed, or use the Move to list on their card. When the bed already holds somebody in the plan, the two swap. Every move is checked again on the server and the board shows a warning when a change breaks something:

  • the person does not fit the room’s gender rule or age limit;
  • somebody who needs an accessible room is in a room that is not accessible;
  • an accessible room is used while somebody who needs one is not placed;
  • a mutual pair has been separated;
  • a smoker and a non-smoker share a room.

Warnings never block you: your team knows things a form cannot say. The publish button reminds you how many warnings are open.

Step 6: publish the offers

Press Publish offers. Every placed applicant receives an e-mail with their building, room, type and bed, the deadline and a personal View and answer my offer button. Everybody not placed goes on the waiting list in plan order and receives a short e-mail saying so.

The offer page shows the room, floor, bed, price and deadline with Accept this room and Decline buttons. Each link is signed for one offer and one applicant: a link that has been changed, a link with another applicant’s signature, or a link opened by a different signed-in student is refused with HTTP status 403 and shows nothing about the room.

An applicant's offer page after accepting: Westbrook University Halls, Accepted, the building, room, room type, floor, bed and price per term, and Your roommate: Chloe, the roommate's first name only
The applicant’s offer page. The roommate’s first name appears only after both have accepted.

One person per bed, always

Accepting fills the bed with a single conditional update in the database: the bed changes from empty to taken only if it is still empty at that moment. So a bed can never be given to two people, even when several applicants press Accept at the very same second, for example when a freed bed was offered to more than one person on the waiting list. The first acceptance wins; the others see Sorry, somebody else accepted this bed a moment before you, receive a short e-mail and keep their place on the waiting list.

Declines, deadlines and the waiting list

  • Decline: the bed is offered straight away to the next person on the waiting list whose details fit the room’s rules (for an accessible bed, people who need one come first).
  • No answer by the deadline: an hourly job closes the offer, tells the applicant it has lapsed and offers the bed to the next person on the waiting list. Offer pages and the admin screens also close lapsed offers the moment they are opened.
  • New applications later on: press Suggest a plan again. Only free beds and people without an offer are used; accepted beds and open offers are never touched.

Roommate names and privacy

  • An applicant only ever sees their own offer. Once they and everybody else in their room have accepted, the offer page shows the roommate’s first name only, never the surname, e-mail address or any answers.
  • Lifestyle answers are shown to administrators only, on the Applicants tab and the plan cards. Other staff see the plan and the lifestyle match percentage without the answers. Applicants never see them.
  • Offer links carry opaque signed tokens, never names or e-mail addresses. Offer pages are marked noindex, are not cached and send no referrer.
  • Applications contain personal data. Describe how you use it in your privacy notice and keep entries only as long as you need them. Deleting an entry for good also deletes its application and frees its bed.

Occupancy and exports

The Offers and occupancy tab: occupancy by building with beds, accepted, offers open, free beds and an occupancy bar, buttons for the room list PDF, the room list CSV and the occupancy summary CSV, the list of offers with their status and the waiting list in order
Offers & occupancy: the summary per building, exports, every offer and the waiting list.

Offers & occupancy shows, for each building, the number of beds, accepted beds, offers open, free beds and the occupancy rate, followed by every offer with its status and the waiting list in order. Three exports sit under the summary:

  • Room list (PDF): an A4 document with the occupancy summary and, per building, every room and bed with the resident, status and price. Handy for the front desk, wardens and move-in day.
  • Room list (CSV): one row per bed with building, room, type, floor, bed, price, status, resident and e-mail. Cells that could run as a spreadsheet formula are made safe.
  • Occupancy summary (CSV): one row per building with beds, accepted, offers open, free and the occupancy percentage.

Uninstall

Deleting the add-on from the Plugins screen removes its five tables (buildings, rooms, beds, applications and offers), its options and its scheduled job. Your forms and entries are kept.

Questions

  • Can I run more than one round? Yes. Publish the first round, then suggest a new plan whenever new applications arrive or beds become free.
  • Why is a pair not together? Either the request is one-way, or no room with two free beds fits both people’s rules and choices. The reason is on their cards.
  • Can students choose a specific room? They rank room types. Your team can move anybody to a specific bed on the plan before publishing.
  • Does the add-on charge rent? No. Prices are shown on the offer and the room list; payments stay with your usual process.
  • Can I change the deadline for one offer? The deadline comes from the setting when the offer is sent. Change the setting before publishing a round.
  • Does it work with my theme? The offer page is a small stand-alone page with its own simple stylesheet; the form uses your Gravity Forms styling.

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