Prerequisites
Before you embed a form, ensure you have:- The Leads product enabled on your account.
- A qualification configuration with a hosted form URL.
- A publishable key from your account.
Get the form token
To find the token, follow these steps:- Open Qualification configurations.
- Copy the value from the Form token column, or open the configuration and copy Form token from the details page.
qct_. The configuration object id (lqc_…) will not work. You can also right-click a row and choose Copy form token.
Add the form to a page
Install the SDK and mount the form.- JavaScript
- React
Prefill and completion
Passemail to send a known address through to the form as prefilled_email. Pass unit with the listing’s unit id so the enquiry records that property.
When the lead submits, onComplete fires. If the configuration is set to redirect after completion, the event includes redirectUrl — navigate the parent page yourself. The iframe will not change window.top.
unmount() on the handle if you need to take the form off the page.
What you get in Yorlet
A successful submit creates an enquiry against that configuration, with the lead’s contact details and answers. If the same person submits the same form again within seven days, Yorlet updates that enquiry instead of creating another. When those submits include differentunit values, Yorlet adds each property to the same enquiry. Yorlet scores the answers in the background, the same as a hosted form opened in a new tab.
You do not need leads.enquiries.write on a browser key — the hosted page uses a key scoped to that one configuration.
To restrict which websites can embed the form, set Allowed websites on the configuration. Leave it blank to allow any website. If a form token is leaked, open the configuration, use the overflow menu (•••), and choose Roll form token. Hosted URLs and embed snippets must then be updated.
Next steps
- Yorlet.js reference — install options and the full
mountAPI - Yorlet React —
YorletProviderandQualificationForm - Create an enquiry — server-side capture when you already have the answers
- Qualification configurations — the questions the form asks