Hello everyone,
On my page template, I have a custom code that allows me to pre-fill the user’s details in hubspot form embed in our page if they’re logged in on our website.
The code below has been working for us but somehow it just stopped working and throws an error “Error:Missing required input parameters. Object id or query is mandatory for crm_object function.”
The Object id is there which is “contact_vid” but still indicates it’s missing.
Any suggestions will be appreciated, thanks in advance.
{% set membership_contact_string = crm_object(‘contact’, request.contact.contact_vid, ‘email, firstname, lastname’) %}
{% text “membership_contact_email”, value= “{{ membership_contact_string.email }}”, overrideable=False, export_to_template_context=True %}
{% text “membership_contact_firstname”, value= “{{ membership_contact_string.firstname }}”, overrideable=False, export_to_template_context=True %}
{% text “membership_contact_lastname”, value= “{{ membership_contact_string.lastname }}”, overrideable=False, export_to_template_context=True %}