Hi,
Using a form embedded in an external HTML page. I need to copy a form value from one element to another and i am using the events for onFormReady. Example code below. If i step through the form then it works but after onFormReady finishes the value defaults back to being blank. I understand the .change() is suppose to update this but no luck for me.
(The email is being copied to a custom object)
Any ideas?
Kindest
Paul
hbspt.forms.create({
region: “na1”,
portalId: “XXX”,
formId: “XXX”,
onFormReady: function($form) {
var em = $(‘input[name=“email”]’).val();
$(‘input[name=“2-13702406/email_address”]’).val(em).change();
}
});