Broker OS Help Open Broker OS
Help › Data in and out

Website forms

Turn enquiries from your website, landing pages or social media into leads (or support tickets) automatically, with ready-made code.

Open this in Broker OS →

What website forms do

A website form connects your website's "Contact us" or "Get a quote" form to Broker OS. When a visitor sends it:

  1. A lead is created (or, for a support form, a ticket) with everything they typed.
  2. The owner gets an email and a call task due in one hour.
  3. If the same email or phone already has an open lead, the enquiry is added to that lead's History instead of creating a duplicate.
  4. Automation rules for "A new lead is added" run.

No website? Every form also has a ready-made form page with its own link you can share on WhatsApp, Instagram, Google Business Profile or a QR code.

Create a form

Admins: Settings → Website forms → Create form.

Setting What it does
Name For you, e.g. Homepage contact form.
Creates A lead (sales enquiry) or A support ticket.
Lead source Saved on every lead from this form, e.g. Website.
Give new leads to The owner of new leads, or Nobody (admins get the email). An automation rule can share them out instead.
Thank-you page (optional) A page on your website to send people to after they submit.
Thank-you message Shown on the ready-made page (or returned to your website) after sending.
Email the owner Send the owner an email for every enquiry.
Form is on Untick to stop accepting enquiries.

Click Save. The form shows its link and the code for your website.

Option 1: share the ready-made page

Copy the link under Link to a ready-made form page. It opens a simple, mobile-friendly form with your company name: name, email, phone, company, message and a WhatsApp consent tick box. Ideal for:

  • Instagram / Facebook bio links,
  • WhatsApp status and broadcast messages,
  • QR codes on flyers, shop counters and exhibition stands,
  • Google Business Profile.

You can also show it inside your website with an iframe:

<iframe src="https://YOUR-BROKER-OS-ADDRESS/f/YOUR-FORM-CODE" style="width:100%;height:640px;border:0" title="Contact us"></iframe>

Option 2: paste the form on your website

Click Copy code under Or paste this on your website and paste it into your web page (in WordPress, use a Custom HTML block). It looks like this:

<form action="https://YOUR-BROKER-OS-ADDRESS/f/YOUR-FORM-CODE" method="post">
  <input name="name" placeholder="Your name" required>
  <input name="email" type="email" placeholder="Email">
  <input name="phone" placeholder="Phone">
  <input name="company" placeholder="Company">
  <textarea name="message" placeholder="How can we help?"></textarea>
  <label><input type="checkbox" name="whatsapp_consent" value="1"> You can contact me on WhatsApp</label>
  <input name="_hp" style="display:none" tabindex="-1" autocomplete="off">
  <button type="submit">Send</button>
</form>

Style it with your website's own CSS. Keep the hidden _hp field: it catches spam robots.

Option 3: keep your current form, add one line

Most businesses already have a contact form (Contact Form 7, WPForms, Elementor, Wix, Squarespace, a custom form…) and don't want to change it. You don't have to.

  1. In Settings → Website forms, under your form, find Or keep your current form: add one line to your website and click Copy line. It looks like this:
<script src="https://YOUR-BROKER-OS-ADDRESS/f/YOUR-FORM-CODE/capture.js" async></script>
  1. Paste it just before </body> on the pages that have your contact form:
    • WordPress: use a header/footer plugin (e.g. WPCode → Footer) or your theme's footer setting.
    • Wix / Squarespace / Shopify: Custom code → Body end.
    • Any other site: ask your web developer to add the line before </body>.
  2. Send a test enquiry through your own form. It appears in Leads within seconds.

What happens: your form keeps working exactly as before (its own thank-you page, its own email to you). When a visitor sends it, the script also sends a copy to Broker OS in the background. It works out which field is the name, email, phone and message, even with unusual field names, and keeps everything else in the lead's notes, together with the page address and any utm_campaign.

Good to know:

  • Only forms that ask for an email or phone are copied. Search boxes and login forms are ignored, and password fields are never sent.
  • To copy only one particular form, add data-form with a CSS selector, e.g. <script src="…/capture.js" data-form="#contact-form" async></script>.
  • To skip a form, add data-crm-ignore to that <form> tag.
  • Some ad blockers block scripts like this for a few visitors. For enquiries that must never be missed, also use Option 4 or a form plugin's webhook.

Option 4: send a form you already have

If your form tool can send its submissions somewhere (a "webhook"), point it at your form's address, as a normal form post or as JSON. Many tools can:

Tool Where to set it
Elementor Pro forms Form → Actions After Submit → Webhook, paste the form address
WPForms (Pro) Settings → Webhooks
Contact Form 7 with a plugin such as CF7 to Webhook
Gravity Forms Webhooks add-on
Zapier / Make / Pabbly add a Webhook POST step to your form's trigger
Google Forms via Zapier / Make, or Apps Script

Broker OS reads these field names (and also recognises common variations such as your-name, your-email, form_fields[email], mobile_no):

Field name(s) Saved as
name, full_name, or first_name + last_name Name
email Email
phone, mobile Phone
company, company_name Company
message, requirement, enquiry Requirement
city, country City, Country
utm_campaign Campaign
website, linkedin, instagram, facebook, twitter, youtube Website and social profiles
whatsapp_consent (1/yes) WhatsApp consent
subject, category Ticket subject and category (support forms)

Any other fields are kept in the lead's requirement notes, so nothing is lost (e.g. budget, service, preferred date).

Example with JavaScript (fetch), showing your own thank-you message:

<script>
document.querySelector('#enquiry').addEventListener('submit', async (e) => {
  e.preventDefault();
  const data = Object.fromEntries(new FormData(e.target));
  const res = await fetch('https://YOUR-BROKER-OS-ADDRESS/f/YOUR-FORM-CODE', {
    method: 'POST',
    headers: {'Content-Type': 'application/json'},
    body: JSON.stringify(data)
  });
  const out = await res.json();   // {"ok": true, "message": "Thank you..."} or {"ok": false, "error": "..."}
  e.target.innerHTML = out.ok ? out.message : 'Sorry: ' + out.error;
});
</script>

Testing from a command line:

curl -X POST https://YOUR-BROKER-OS-ADDRESS/f/YOUR-FORM-CODE \
  -H 'Content-Type: application/json' \
  -d '{"name":"Test Person","email":"[email protected]","phone":"+971 50 123 4567","message":"Need a quote","utm_campaign":"Ramadan offer"}'

At least an email or a phone number is required; otherwise the form returns an error.

Tracking campaigns

Add utm_campaign to your ad links (e.g. yourwebsite.com/contact?utm_campaign=diwali-offer) and pass it through to the form as a hidden field. The lead's Campaign is filled in, and the Sources & campaigns report shows which campaign brings business.

Support forms

Choose Creates: A support ticket to make a help-desk form. Each submission becomes a ticket, the customer gets an email with their ticket number, and the team is notified. Add subject and category fields if you want customers to choose them. See Support tickets.

Spam protection

  • The hidden _hp field: robots fill it in and are ignored.
  • Too many submissions from the same internet address in an hour are refused.
  • Turn a form off with Form is on if it's being abused, and create a new one (new address).

Tips

  • Make one form per place (homepage, landing page, Instagram) with its own Lead source, so reports show where leads come from.
  • Send a test enquiry after setting up and check it arrives as a lead.
  • Pair forms with the automation recipe "New website lead: assign, call within the hour, tell the owner".