Can I design a subscribe form myself?
Yes, if you are comfortable using HTML and CSS, you can design the subscribe form entirely by yourself. Then you do not have to use the default standalone subscribe form, or the default embedded subscribe form.
Designing the (subscribe) form entirely by yourself can be good if you want the form to blend seamlessly with your website and/or you want to add additional functionalities to the form.
When designing the form yourself, you have two options:
a. Using our API
With our API you can automatically add data to our system. This way, you can design your own form in HTML and have the data added to your list(s). Controlling the input can also be done through our API. There is a complete working example available on GitHub for PHP.
b. Without using our API
We also have plain HTML (without CSS) available. That way, you have full control over the display of the form, but you do not have to work with our API to add data.
- Within this form, you can provide a page to which the visitor is redirected after subscribing.
- A drawback of this form is that the checking of the fields does not happen through javascript.
You can find both options on the page Subscribers (click on the relevant list) → Enrich → Subscribe, when you click 'custom'.
Additional information form without API
Filling out the 'next' field
The the field named 'next', you can enter the URL to which a visitor is redirected when the subscribe form has been filled out correctly. Enter your URL at the 'value' attribute.
Checking fields
The fields are checked by our server. If there are no errors, and a 'next' value has been entered, the visitor will be sent to that URL. If there are errors, they will be summarized.
Notification design
The error notifications are shown in a simple HTML page. If desired, you can take care of these errors in javascript. Then you can decide for yourself how you want to show error notifications.