Site and formArticle 23 of 30
Embed the form in your website
The form appears in a page of your website through an iframe, a frame that displays another page. The back office doesn’t provide any code to copy: you retrieve the form’s address, then pass it to the person who manages your website (your webmaster), along with the example on this page.
Get the form’s address
Section titled “Get the form’s address”
- In Forms, find the form’s address, under its title.
- Click the Open in a new tab icon (a square with an arrow) on the right of the form’s row (its tooltip reads “Opens the saved version of the public form, in a new tab”) to check that this address does display the form.
- Pass the address to your webmaster.
Put the form in a page
Section titled “Put the form in a page”Here is an example to give to your webmaster. Replace the address with your form’s address; ?lang= sets the language.
<iframe id="inscription" src="https://inscription.cardiolis.exemple.fr?lang=fr" title="Inscription au Congrès Cardiolis 2027" width="100%" height="1400" style="border: 0"></iframe>
<!-- Optional: adjusts the frame's height to the form's height --><script src="https://cdn.jsdelivr.net/npm/iframe-resizer@4.4.5/js/iframeResizer.min.js"></script><script> iFrameResize({}, '#inscription');</script>Without the script, the frame keeps the height you set (here 1,400 px) and the participant scrolls the form inside the frame. With it, the frame grows with the form and the page scrolls normally.
Measure registrations from your website
Section titled “Measure registrations from your website”After each successful submission, the form notifies the page that contains it. Your webmaster can listen for this message to count registrations in your analytics tool, for example Google Tag Manager.
<script> window.addEventListener('message', function (event) { // Keep only the messages from the form if (event.origin !== 'https://inscription.cardiolis.exemple.fr') return;
var message = event.data; if (message && message.type === 'registration:step' && message.payload.step === 'confirmation') { window.dataLayer = window.dataLayer || []; window.dataLayer.push({ event: 'inscription_envoyee' }); } });</script>Good to know
Section titled “Good to know”- The measurement message counts submissions, not registrants. It is sent on every successful submission: a first registration, a change, a “I’m not coming” answer, a registration awaiting moderation. It isn’t sent when a tab of a multi-step form is saved, or when the participant is sent to a card payment.
- UTM parameters are read from the frame’s address. A link like
yoursite.com/registration?utm_source=linkedinisn’t enough: your webmaster must copy theutm_…parameters into the iframe’s address. See Track the source of registrations with UTM links. - No language selector inside a frame. It is hidden as soon as the form is in an iframe. The simplest approach is one page per language, each with its own
?lang=; your webmaster can also add a selector to your website that changes the frame’s address: see Offer the form in multiple languages. - The page background image displays differently when the frame’s height adjusts with the script: it is stretched over the whole height of the frame and scrolls with the page, instead of staying fixed behind the form. If you don’t want this look, remove the script.
- An address of your own changes the links to the form. If the form has a Custom domain (Settings tab, Advanced settings card), the icon that opens the form leads to this address instead of the AppCraft address. The buttons in your emails that point to the form (personal link,
/k/…) pick it up only if you entered the domain before choosing the form in the button: an email already written keeps the old address, so choose the form again in its button to update it. This address must already display the form, otherwise the links sent to participants lead to an empty page. Ask your project manager how to connect it before you enter it.
If that’s not enough
Section titled “If that’s not enough”- You want an address of your own for the form (for example
inscription.your-event.com). Ask your project manager how to connect it. - The frame stays empty or shows an error. Send your project manager the form address used in the iframe, the address of the page on your website that contains the frame, and a screenshot of the message displayed. Also ask your webmaster to check that your website doesn’t block the display of external pages.
- Your page is in the AppCraft platform. The IFrame block of a platform page displays the form without code: see Building a CMS Page with blocks.
See also
Section titled “See also”Was this page helpful?
Thanks for your feedback!
Can’t find your answer? Contact support
© AppCraft EventsAppCraft Events websiteLog inContact support