If you are using the Poool Form widget, you need to implement a data retrieval logic. Nothing is stored in the Dashboard.
To achieve this, we offer three main options:
Zapier Integration
We provide a connection with Zapier, allowing you to send data to your own system.
You can easily activate this connection via the "Integrations" tab in your Dashboard.
If you choose this option, you can follow our guide 👉 How can I connect Poool to Zapier?
Webhooks
Another option is to set up webhooks to retrieve information into your own tool. In the "Integrations" section, go to the Webhooks area to enter the destination URL.
This activation requires coordination with your technical team to create the webhook. Find more details on this topic in our dedicated technical documentation.
JavaScript Event
For security reasons, the data collected in forms is not stored but sent in a JavaScript event. To retrieve the data, technical implementation is required.
You can use the available "formSubmit" event. Here are the details of this event:
Legacy Version
poool('event', 'onFormSubmit', function(event) {
console.log('Form ' + event.name + ' submitted!');
// If necessary, you can review the form fields to perform your own validations.
// If an array containing the identifiers of the invalid fields is returned, the paywall will display the list of fields in error.
// If the array is empty or nothing is returned, the article will be unlocked.
var invalid = [];
if (event.fields.password !== event.fields.passwordRepeat) {
invalid.push('password');
invalid.push('passwordRepeat');
}
return invalid;
});
For more information, feel free to consult the technical documentation on the onFormSubmit event.
Access configuration
access.on('formSubmit', event => {
console.log('Form ' + event.name + ' submitted!');
// If necessary, you can review the form fields to perform your own validations.
// If an array containing the identifiers of the invalid fields is returned, the paywall will display the list of fields in error.
// If nothing is returned, the article will be unlocked.
var invalid = [];
if (event.fields.password !== event.fields.passwordRepeat) {
invalid.push('password');
invalid.push('passwordRepeat');
}
// You can also return your own error message
if (!event.fields.address) {
invalid.push({ fieldKey: 'address', message: 'Your address is empty. Please fill it in.' });
}
if (invalid.length) {
return invalid;
}
});
Feel free to consult the technical documentation on the formSubmit event for a comprehensive view of what can be implemented.
Our teams are available to guide you on the most appropriate method according to your needs 🙂