Hidden feature: get access to the submitted form data
You can set up some action which will be triggered after a form is submitted:
One of such actions is running a custom JS code:
What if you need to access the submitted form data in this custom JS code? There is a solution!
Use the formDataKeyValue variable to access the form data.
Alternatively, you can access formDataSerialize or formDataSerializeArray if you prefer another data schemes.
Is it safe?
Answer:
This feature does not disclose your visitors' data. It simply give a simple on-page only access to it.
The user data still is not stored on our servers and therefore can not be leaked.
How can I benefit from this feature?
Answer:
You can pass custom events based on the inputed data to your analytics tool to segment your audience.
One of such actions is running a custom JS code:
What if you need to access the submitted form data in this custom JS code? There is a solution!
Use the formDataKeyValue variable to access the form data.
Alternatively, you can access formDataSerialize or formDataSerializeArray if you prefer another data schemes.
Question:
Is it safe?
Answer:
This feature does not disclose your visitors' data. It simply give a simple on-page only access to it.
The user data still is not stored on our servers and therefore can not be leaked.
Question:
How can I benefit from this feature?
Answer:
You can pass custom events based on the inputed data to your analytics tool to segment your audience.
Updated on: 20/07/2022
Thank you!