We have a number of forms set up on our website. 95% of the time, when someone completes a form and presses submit, we get an email with all the details.
But not always. I know it’s not working, because pressing submit redirects the person to another page (an external payment page, because payments are supported by HubSpot in my country yet). I can see them making a payment, but the form they filled out in order to get there hasn’t captured data.
What could cause this from happening? Why would almost every form completion result in an email, but not for some? In these cases, there is no record at all of the person on our website. No contact data created, and therefore no record of them viewing a page. Or, if they are already a contact, there’s no record of them visiting the page where the form lives.
I am tearing my hair out. A HubSpot tech looked in to it, but said they needed ‘concrete evidence’ these people were filling in these forms. I don’t have a camera over the shoulder of everyone who visits our site, so couldn’t get any further.
Is there some sort of antivirus that could stop data being captured, and thus forwarded??
Any help or leads would be very much appreciated!!
This was moved by a mod from another section, without all detail, which I have now tried to recreate below.
-------
This is a form, that when completed and you click the submit button, it directs the person to an external payment link.
By going in to developer mode, you could extract the link to the payment page, but that’s a lot of mucking around. I have reached out to a few people whose details weren’t recorded by the form, and they said they just filled out the form and clicked submit.
It is a HubSpot form. A personalised embed code was developed for us by a third party (who we can no longer contact, unfortunately), but I believe that is only utilised on pages where the form is used, in order to prefill fields on the external payment page.
When I go to the submissions tab, all I see are those submissions that were successful. There are no errors, and nothing else appears untoward.
------
You will have to excuse me if I use the wrong language or phrasing here, as my web skills aren’t exactly crash hot!
The forms themselves appear normal. However, on the landing pages where we use them, there is an embed code behind the submit button. This directs the user to an external payment page, and also contains some prefill information (eg, the name they entered into the form on our website can be carried over to the form on the external payment page).
From what I can see, this javascript is the only custom work that’s been done. I’m not really very good with javascript, so fear we may need to reach out to someone else to tidy things up (which quite frankly **bleep** when you’re a charity).
------
The form is a HubSpot form, on a HubSpot page. The link is to an external payment company, and HubSpot sales (or whatever it’s called) isn’t functional in Australia yet. I get 100% of data inputed in to the external form, no problems. I am getting around 90% of data inputed in to the HubSpot form recorded and emailed to me.
There are a 3 forms causing the issues, currently used on these 3 pages:
When I edit the landing page for the first link above, and edit the “Proceed to Payment” button, this the code shown:
<script charset="utf-8" type="text/javascript" src="https://js.hsforms.net/forms/embed/v2.js"> </script>
<script>
hbspt.forms.create({
region: "na1",
portalId: "23931183",
formId: "438c1e48-99e3-4679-bf6b-361de29ba30c",
//
// Send customer and data to EziDebit Payments
onFormSubmit: function($form) {
// Submission Data for EziDebit Payments
var email = $form.find('input[name="email"]').val();
var firstName = $form.find('input[name="firstname"]').val();
var lastName = $form.find('input[name="lastname"]').val();
var mobile = $form.find('input[name="phone"]').val();
var amount1 = $form.find('input[name="art_union_donation_tickets"]:checked').val();
var amount2 = $form.find('input[name="art_union_donation_tickets__more_than_200_"]').val() / 2;
// Construct Query Parameter
// Check values to construct parameter
var paymentForm = 'https://rfbaq-online-ticket-and-donations1.pay.ezidebit.com.au';
if(amount1 == "More Than 200 Tickets ($0.50 ea)"){
requiredProps = "?PaymentReference="+firstName+"&EmailAddress="+email+"&FirstName="+firstName+"&LastName="+lastName+"&MobilePhoneNumber="+phone+"&PaymentAmount="+amount2;
var redirectUrl = paymentForm + requiredProps;
setTimeout( function() {
window.location.href = redirectUrl;
}, 500 ); // Waits 1/2 second to redirect.
} else {
requiredProps = "?PaymentReference="+firstName+"&EmailAddress="+email+"&FirstName="+firstName+"&LastName="+lastName+"&MobilePhoneNumber="+mobile+"&PaymentAmount="+amount1;
var redirectUrl = paymentForm + requiredProps;
setTimeout( function() {
window.location.href = redirectUrl;
}, 500 ); // Waits 1/2 second to redirect.
}
}
});
</script>