The site has multiple forms without identity. For some reason, the LMFX URL selector is not working as well.
Added a code to give the forms a class name depending on their URL and thus creating an identity unique enough to be identified as a selector for the form mapping.
<script>
mcfx(function(t) {
t.configure("onFormCapture", function(form) {
var url = window.location.href;
var baseUrl = 'https://www.raincitycapital.com/';
if (url.indexOf(baseUrl) === 0) {
var path = url.substring(baseUrl.length).split('/')[0];
path = path.replace(/[^a-zA-Z0-9-]/g, '');
var className = path ? 'rcfx-custom-class-' + path : 'rcfx-custom-class-default';
form.classList.remove(className);
form.classList.add(className);
}
});
});
</script>
Leads are properly assigned the correct lead types.