Contacts menu -> Forms -> Source Code
On the Source Code step of the wizard, you find code information which helps you to link the current form to your website. With these code snippets you can:
- Display registration forms via a hyperlink.
- Display registration forms triggered by a certain page load.
- Select a prefill mechanism.
- Prefill a static form with database info.
- Design custom registration forms.
- Use background registrations.
Display registration forms via a hyperlink
Go to Hyperlink section of the page, copy the link information and place it into the source code of your website.
Via a text link, e.g. "Sign up for our newsletter!", or a dedicated button, you can lead the contact to a registration pop-up window and thus link your website to the registration form you have created.
Display registration forms when a certain page is loaded
Go to the On load pop-up window section of the page, copy the link information and add it to the <body> tag of the desired page.
Use a prefill mechanism
Choose the desired method to activate the mechanism:
Prefill a static form with customer info from the database
Attach the parameters in the fourth field of the page to prefill a form with contact data available from the database.
Use form source code to design custom registration forms
If you want to use a form with custom layout, use the code specified in the Form Source Code field as a starting point. This code has no formatting; you can integrate it in your page and adapt the layout as desired.
Attention: The code uses the fields of the form you created in the Emarsys application. Any changes to these fields should first be made in the application; then the source code can be added once again to your website.
Use background registration
Use the code from this field if your existing forms are connected to your own database and you want to have the contact information transferred to the Emarsys database as well.
For this, you have to compare the registration variables (name, last name, email) in your existing form with the ones available in your Emarsys account. Fields which do not exist in your account must be created. For more information, please contact Emarsys Support.