@yorlet/react wraps @yorlet/js so you can drop a qualification form into a React tree. The form still iframes the hosted page — you never put a secret key in the browser.
Install
Embed a qualification form
Copy the form token from a qualification configuration — it is shown in the Form token column and on the configuration’s details page. It is not the configuration object id (lqc_…).
unmount() yourself.
QualificationForm props
Any other props are passed through to the container
div.
YorletProvider
Wrap a tree of forms that share the same publishable key. The provider is optional if you pass publishableKey on QualificationForm.
useYorlet() returns the client created by the nearest provider.
Testing against a local hosted app
You do not needorigin in production. YorletProvider and QualificationForm already load the form from the production hosted app. Pass origin only when you are testing against a local frontend-app:
What happens after submit
The lead’s answers are stored on an enquiry in your pipeline. If the same person submits the same form again within seven days, Yorlet updates that enquiry instead of creating another. Passunit on a listing page so the enquiry records that property. Further submits from the same person add more properties to the same enquiry. You do not need to call the Enquiries API from the page. If you want to send them somewhere else after they finish, handle onComplete — the iframe will not navigate the parent page itself.
For a full walkthrough, see Embed a qualification form.