

The visitor sees the price and its breakdown on the last step, before they submit the quote.
Quoteform is a quote and cost calculator form builder for one job: working out
a price. A visitor picks a configuration — three rooms, two bathrooms, express
turnaround — and sees an instant estimate. When they submit the form, the quote
arrives on your Entries screen. That is a different problem from a contact form,
and Quoteform is built for it rather than around it.
Use it for a cleaning or moving quote, a printing or web design estimate, an
event or rental price, or any service where the price depends on the answers.
Conditional logic and multi-step forms are the two features that calculator
plugins usually keep behind a paid upgrade. Here they are simply part of the
plugin.
subtotal and total. AA saved form can be placed on the site in three ways, and all three draw exactly
the same form:
[quoteform id="12"], where 12 is the id shown in the formOn the page, the visitor moves through the steps with Back and Next. The total
updates as they answer, fields and steps appear and disappear as the rules say
they should, and a required field they can see has to be filled in before Next
will move them on. On the last step the total is broken down into the
calculations that make it up.
On the last step the visitor submits the form. The server then works out the
price again from the answers alone. The browser never sends a total, so a
visitor cannot change the price that gets stored.
Quoteform does not send email notifications, does not take payments and does
not let a visitor save a form and come back to it later. Entries are only on
the Entries screen and in the CSV export.
Formulas are written in a small, deliberately limited expression language:
{room_count} * 50 + {bathrooms} * 120
if({urgency} == "express", {subtotal} * 1.3, {subtotal})
round(max({subtotal}, 99), 2)
The available functions are if, min, max, sum, round, ceil, floor,
abs, contains and is_empty. The formula editor checks each formula as you
type: it tells you where a formula is malformed, and when a formula refers to
something the form does not have it says so — and if the name is close to one
that does exist, it asks whether that is what you meant.
The expression language is not JavaScript and it is not PHP. Formulas are read
by Quoteform’s own parser into a syntax tree and evaluated one node at a time.
PHP’s eval() and JavaScript’s eval() and Function() are not used anywhere
in this plugin. The JavaScript that ships is checked before every release for
every spelling of both — eval(), Function() and new Function() — so the
promise is kept by a machine rather than by memory.
Every form is validated again on the server when it is saved, no matter what the
browser sent. Circular references between calculations are refused at save time
rather than discovered later.
The front-end script is under 10 KB gzipped and loads no framework: no React,
no jQuery, no web fonts, no CDN. It is enqueued only on pages that actually
contain a form.
No pro version, no add-ons, no license key, no account and no hosted service.
Quoteform sends no data anywhere: it makes no request to any external server,
loads no fonts or scripts from a CDN, and collects no usage statistics.
Submitted entries stay in your own WordPress database. Each entry stores the
answers, the calculated total and its breakdown, the date, the visitor’s
browser user agent and, if the visitor was logged in, their user ID. The
visitor’s IP address is stored only if you turn on Store the visitor’s IP
address with each entry in the form settings. It is off by default.
The answers can contain personal data, such as a name or an email address,
when your form asks for it. Mention this in your site’s privacy policy.
The JavaScript and CSS in build/ are compiled. Their human-readable source
lives in admin-src/ and frontend-src/ of the public repository:
https://github.com/muradNasrullayev/quoteform
To rebuild the assets from source:
npm installnpm run buildPHP dependencies are installed with composer install --no-dev.