Hi, @zohaib.
Apologies for the delayed response.
With a Marketing Basic (legacy), Professional, or Enterprise subscription, you can use these options to manipulate form field values with jQuery.
For example, I used:
<script>
var ga_client_id = "myValue";
hbspt.forms.create({
portalId: "",
formId: "",
onFormSubmit: function($form, ctx){ $('input[name="ga_client_id"]').val(ga_client_id).change();
}
});
</script>
Form field manipulation is not possible with a Marketing Starter or Free subscription, however, as these forms render in an iframe.
Instead, you can auto-populate form fields with query strings.