Spotlight: Turning Gravity Forms into a Real-Time Medical Calculator

See how Roman Melicher turned a form into a web application that processes hundreds of lab parameters to save doctors time.

  1. The Spotlight
  2. The Twist
  3. The Outcome

Spotlight Function

Real-time quote calculator

Imagine walking into a medical center where the doctors are tied up at their desks calculating the cost of blood tests instead of seeing patients.

That was the situation at Health Services in Slovakia. They managed over 700 lab parameters, each with its own price, insurance rules, and possible combinations. Before anyone could draw blood, someone had to figure out what the patient actually owed.

The reception staff didn’t have the medical expertise to handle such data. So who did the work instead?

[The] doctors were burdening themselves with providing this information.

Roman Melicher saw what was happening, and knew it had to change. 

The Spotlight

Roman had been reading Gravity Wiz’s Spotlights for a while, learning how other wizards solved tricky problems with clever Gravity Forms setups.

Actually, thanks to the Spotlight [section in the Gravity Wiz Weekly] newsletter, I thought about this in the first place. Since I am a Gravity Wiz fan… I thought about the whole idea and how it can work for us.

What if reception could handle this? They could just search for the parameters, pick what’s needed, and see the total right there on the screen.

So, he opened his Spellbook and made it a reality:

  1. First, he moved all 700+ parameters and their pricing into a Google Sheet and connected it to Gravity Forms using GC Google Sheets. This kept the data centralized and easy to update. 
A drop down field is selected in the form editor, with the 'Populate choices dynamically' setting toggled on and connected to Google Sheet.
  1. He used GP Populate Anything to pull the pricing data from the Google Sheet into the form.
  2. To save receptionists from scrolling through hundreds of options, he used GP Advanced Select. With this, staff members just type one or more letters to find the correct parameter.
A user previews the form, selects the drop down field, types in 'X' and a list of results appears. 'amoxicillin' is selected and the rest of the price fields are auto-populated.
  1. At the heart of it all was GP Nested Forms, allowing staff to add multiple tests (child entries) to a single patient’s quote, calculating the running total in real-time.
A user previews the form, selects the drop down field, types in 'X' and a list of results appears. 'amoxicillin' is selected and the rest of the price fields are auto-populated.

Best of all? Roman built this entire system without writing a single line of code.

I’ve built my website mostly around Gravity Perks (with zero knowledge of programming). You [guys] are providing flexible solutions for everyday use.

The Twist

Roman had built a useful form. But the real magic was yet to come…

While most forms collect data, create entries, and store everything, Roman didn’t need any of that. Why? Because the form never gets submitted. Ever.

Instead, the workflow is purely cyclical:

  1. The reception staff opens the form.
  2. They build the quote.
  3. They give the price to the patient.
  4. They reload the page.
A user fills out a child entry, clicks 'add entry', and refreshes the page. The parent form clears and is ready for another set of entries.

A perpetual calculator—always on, never storing data, and instantly ready for the next patient. No submissions, just results.

The Outcome

Doctors who were stuck calculating costs are back to treating patients, saving hours every week.

The reception staff? Now breezing through 700+ lab parameters in seconds.

[It allows us] to unload the burden from the doctor and hand it over to reception staff, so they can provide the patient all necessary information… And also add calculations to save their time.

Thanks for sharing, Roman! You’ve shown us that forms can be magical, even without ever being submitted. 🪄

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Trouble installing this snippet? See our troubleshooting tips.
  • Need to include code? Create a gist and link to it in your comment.
  • Reporting a bug? Provide a URL where this issue can be recreated.

By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.


This field is for validation purposes and should be left unchanged.
Grab a bundle of free Gravity Forms plugins

Enter your email and receive our most popular free plugins and snippets, plus access to hundreds of others.