Hey @xabi
Welcome to the community!
I am in need of some clarification of what you need help with. Do you need help with adding the custom property to the email so the correct URL is delivered to the customer? Or do you need help setting up a flow that once someone submits the form to receive the URL and email is automatically sent to the customer? In addition to the clarification, what integrations are you using? This will help me provide a quicker solution if I know what you are working with!
I’ll be on the lookout for your response!
Hi @stephen.trumble
Thanks for you response. I need help doing more than one thing.
One of then was to send info to a custom property (i have created one custom property in form called ‘url_document’) when user enter her email and submit the form. I reed this post and use code like that. Do you think this is the correct way?
window.addEventListener("klaviyoForms", function(e) {
if (e.detail.type == 'submit') {
e.preventDefault();
var klaviyoq = window.klaviyo || y];
const tag = document.querySelector("#download");
const url_doc = atob(tag.dataset.url);
klaviyoq.push(.'identify', {
'url_document' : url_doc
}]);
}
});
Second thing, is to send an email with this ‘url_document’. I’m using a flow to send email when user submit the form. For that i’m using the trigger form submited by profile. Is that the correct way?
I think the second part is the correct way, but i’m not sure with the first, because sometimes i have the data of url_document in klaviyos profile properties and other times the propertie was empty, and i don’t know way, or in what scenario. I’m doubt with use of `e.preventDefault()` function.
I wish you can understand better my issue
Thanks
Hi @stephen.trumble ,
If I use a “Form submitted by profile” metric to trigger a flow can thsi flow execute more than one time?
I think that is possible but, when i tested i see that only trigger the flow in the first “Form submitted by profile”.
Thanks,